GeezerVison is showing github.com — id(roc): finish the example migration: tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText · Issue #565 · developing-today/code
id(roc): finish the example migration: tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText #565DescriptionWhat and why
Two examples still use older patterns (hand-built JSON and a plain-text view), and RocText is imported by no example. Examples are what authors copy, and two of them still show the old hand-built JSON and plain-text patterns.
Source
RPT = doc/2026-10-18T18-40-00Z_report_platform_world_state/2026-10-18T18-40-00Z_report_platform_world_state.md, REF = doc/2026-10-18T00-00-00Z_reference_platform_state/2026-10-18T00-00-00Z_reference_platform_state.md. Both are uncommitted reports in the platform-world-apps-migration worktree.
Current status
Not started. grep -n 'RocJson\|Screen' pkgs/id/examples/tic-tac-toe/main.roc pkgs/id/examples/roc-counter/main.roc finds nothing; grep -l RocText pkgs/id/examples/*/main.roc finds nothing.
Acceptance criteria
- tic-tac-toe uses RocJson instead of hand-built JSON
- roc-counter renders through Screen
- At least one example imports RocText
- Modules are rebuilt with the pinned compiler and example tests pass
Size
S
Prerequisites
Activitydezren39 commented on Oct 24, 2026 id train triage (2026-10-24): blocked-on-#541 — example migration rebuilds the examples; #541 (F11.18) pins the Roc compiler first so the rebuilt artifacts are the pinned ones. dezren39 commented on Oct 26, 2026 Intake review
Fleet-monitor intake pass (2026-10-26). Body already carries a full ## Acceptance criteria section, so this pass is label normalization plus a liveness check — no body edit.
Verified live on main e3467560 (2026-10-26): grep -c 'RocJson\|Screen' pkgs/id/examples/tic-tac-toe/main.roc pkgs/id/examples/roc-counter/main.roc returns 0 for both files, and no example's main.roc imports RocText. The migration leftovers described in the issue are still exactly as filed.
Related: prerequisite #541 (pinned Roc compiler + CI rebuild job) is itself still open and unenriched — the rebuild-with-pinned-compiler acceptance bullet cannot be verified until it lands. Sibling example-size work: #555.
Risks / notes: low risk; examples are the copy-source for authors, so the patterns matter more than the size suggests. The two source reports cited in the body live in an uncommitted worktree per the body's own note — the issue body is self-contained enough to work from without them.
Suggested approach: after #541 lands, migrate tic-tac-toe to RocJson and roc-counter to Screen in one PR, add RocText to the example where it fits most naturally, rebuild all examples with the pinned compiler, and run the example tests. dezren39 commented on Nov 3, 2026 agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/low). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-b
- Session / ID: task 7583 (repo-health-code-pilot triage), shift 2026-11-03T12:20Z
- Found via: queue claim
- Task: Triage of issue id(roc): finish the example migration: tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText #565 at current main — verdict: already done; closing with evidence. (An earlier done note from task 2637 recorded the fix but the issue was never closed; this note closes that gap.)
- Evidence (fresh, current main c7a02b6):
- PR id(roc): finish the example migration — tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText (#565) #2970 MERGED 2026-10-31 (merge commit c1b9052) — "finish the example migration — tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText (id(roc): finish the example migration: tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText #565)"; its body records
roc check clean on both examples, both build.sh rebuilds + wasm-tools validate passed, and cargo test --lib -- counter tic_tac_toe 10 passed / 0 failed.
- Criterion 1 (tic-tac-toe uses RocJson): the example was later moved to
pkgs/id/apps/tic-tac-toe/ by PR feat(id): package tic-tac-toe as the first apps/ folder + host discovery (#2324) #3926 (commit df3f836, 2026-11-01, for id: PoC: package tic-tac-toe as the first apps/ folder — app.toml + host discovery #2324); on current main pkgs/id/apps/tic-tac-toe/program/main.roc line 3 import pf.RocJson, lines 65-68 build the records object with RocJson.Object — the hand-built JSON is gone.
- Criterion 2 (roc-counter renders through Screen):
pkgs/id/examples/roc-counter/main.roc line 3 import pf.Screen, lines 33-34 Screen.boxed(...) / Screen.render_json(Screen.put_text(...)).
- Criterion 3 (at least one example imports RocText): roc-counter line 4
import pf.RocText, used at line 16 (RocText.trim(ev)).
- Criterion 4 (rebuilt with pinned compiler, tests pass): prerequisite id(roc): F11.18 pin the Roc compiler for checked-in example modules and rebuild them in CI #541 is CLOSED (pinned Roc compiler + CI rebuild job landed); PR id(roc): finish the example migration — tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText (#565) #2970 rebuilt both checked-in
.wasm artifacts and its tests passed as recorded above.
- Expectation: issue id(roc): finish the example migration: tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText #565 closed as completed; task 7583 completed as
already_done. No follow-up fix task needed.
- Links: PR id(roc): finish the example migration — tic-tac-toe -> RocJson, roc-counter -> Screen, adopt RocText (#565) #2970 · PR feat(id): package tic-tac-toe as the first apps/ folder + host discovery (#2324) #3926 · prerequisite id(roc): F11.18 pin the Roc compiler for checked-in example modules and rebuild them in CI #541
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|