Skip to content

id(worlds): ship playable Roc Mind Map guest for mind-map/same-label-distinct-nodes - #13791

Merged
dezren39 merged 2 commits into
mainfrom
lane/oc-code-02-mind-map-13609
Nov 24, 2026
Merged

dezren39 merged 2 commits into
mainfrom
lane/oc-code-02-mind-map-13609

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Ships a playable Roc Mind Map guest for mind-map/same-label-distinct-nodes.

Closes #13609.

What is new:

  • pkgs/id/examples/roc-mind-map: main.roc on the pinned Roc platform (no new SDK, Plaza ABI v1 entry points), build.sh (pinned roc-toolchain guard, wasm-opt plus strip plus validate), README.md, and the checked-in import-free mind-map.wasm.
  • Guest semantics: stable node IDs (duplicate Archive labels on U and V), a typed related cross-link that survives reparent and rename, refused single-history cycle (refused-cycle, tree unchanged), preserved positions; host participant-0 events ignored. records and snapshot publish the same domain document; the view is a portable screen.
  • Host test checked_in_mind_map_replays_same_label_distinct_nodes (crates/id-worlds/src/sandbox.rs) replays the four app-vectors steps (rev b9d8177, event tags stripped) against literal after projections, then snapshot-restores into a fresh instance and compares through the regular host.
  • Registration: scripts/rebuild-roc-examples.sh and the toolchain_pin.rs example list (8 to 9). Book coverage: first-apps.md (9 to 10 apps), guests-and-shells.md, development/add-a-guest.md.
  • Cells (feat(id): add a playable, manually stepped Cells guest #13587) untouched; no dependency on it. Existing roc-grid/tic-tac-toe shapes only.

Verification:

  • Local: id-worlds sandbox mind-map test ok; toolchain_pin 10/10 ok; roc check clean; build.sh validates the import-free module.
  • Fleet (GitHub-hosted plan quota): https://github.com/dezren39/fleet/actions/runs/45272664972 — completed, conclusion=success (Select execution target + Linux jobs success, macOS skipped)
{
  "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:50:03Z",
    "session_id": "ses_e5df5d40823ffenow5PclE6dus",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/.local/share/opencode/worktree/7c7733/id-mind-map-13609",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/.local/share/opencode/worktree/7c7733/id-mind-map-13609",
      "repo": "developing-today/code",
      "branch": "lane/oc-code-02-mind-map-13609",
      "sha": "fa199eea001d0418b5cb88abba2b9e083fae0469"
    },
    "auth_subject": "oc-code-04",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

…distinct-nodes

Adds examples/roc-mind-map (main.roc, build.sh, README, checked-in mind-map.wasm): stable node IDs with duplicate Archive labels, typed related cross-link through reparent and rename, refused single-history cycles, preserved positions, portable screen view, records/snapshot domain document.

Host test checked_in_mind_map_replays_same_label_distinct_nodes replays the four app-vectors.json steps against literal projections, then snapshot-restores into a fresh instance. Registers the example in rebuild-roc-examples.sh and the toolchain pin list; updates first-apps, guests-and-shells and add-a-guest coverage.
@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 45 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: 2946fba9-2d79-482c-9bd5-7a2125e11924
Commits

Reviewing files that changed from the base of the PR and between a32e67e and 692d208.

Files ignored due to path filters: 1

  • pkgs/id/examples/roc-mind-map/mind-map.wasm is excluded by !**/*.wasm
Files selected for processing: 10

  • .github/test-suite-registry.json
  • pkgs/id/book/design/first-apps.md
  • pkgs/id/book/development/add-a-guest.md
  • pkgs/id/book/library/guests-and-shells.md
  • pkgs/id/crates/id-worlds/src/sandbox.rs
  • pkgs/id/examples/roc-mind-map/README.md
  • pkgs/id/examples/roc-mind-map/build.sh
  • pkgs/id/examples/roc-mind-map/main.roc
  • pkgs/id/scripts/rebuild-roc-examples.sh
  • pkgs/id/tests/toolchain_pin.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

The id.roc.examples entry lists every Roc example glob; the new
examples/roc-mind-map/ directory belongs there beside the rebuild
script entry so suite mapping stays complete.
@dezren39
dezren39 merged commit 46015b7 into main Nov 24, 2026
2 checks passed
@dezren39
dezren39 deleted the lane/oc-code-02-mind-map-13609 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.

id(worlds): ship playable Mind Map guest for mind-map/same-label-distinct-nodes

1 participant