Skip to content

id(examples/rust): plaza-sdk + rust-counter unit tests (11) run by no workflow, flake check, or registry entry — checked-in counter.wasm never rebuilt in CI #7904

Closed

Description

@dezren39

id(examples/rust): plaza-sdk + rust-counter unit tests (11) run by no workflow, flake check, or registry entry — and the checked-in counter.wasm is never rebuilt in CI, so source/wasm drift is invisible

Summary

PR #7891 (merged 2026-11-08, commit 6b83db8, for #1065) landed the Rust guest SDK as two standalone crates:

  • pkgs/id/examples/rust-world/ — the plaza-sdk crate, with 9 unit tests (cap 1, grid 1, json 3, screen 2, text 2). Several are the only parity guards against the Roc platform libraries: e.g. screen::tests::render_json_matches_roc_screen_expects and boxed_and_plain_match_roc_screen_expects ("byte-exact render_json expects"), json::tests::decode_preserves_number_lexemes_and_first_key_wins.
  • pkgs/id/examples/rust-counter/ — the playable example, with 2 unit tests (counter_matches_the_roc_program, view_is_the_boxed_screen_document).

Both crates declare their own empty [workspace] table (intentionally not members of the pkgs/id workspace, per rust-world/Cargo.toml: "Standalone crate: intentionally not a member of the pkgs/id workspace, like the other example guests"). That makes them invisible to every existing venue — the same trap the flake already documents and fixes for id-native-shell ("the crate is a non-default workspace member, invisible to the default-member checks", pkgs/id/flake.nix:356-359, gated by dedicated test-native-shell / clippy-native-shell checks). No equivalent gate exists for the Rust guests:

  • .github/test-suite-registry.json: 0 mentions of rust-world, rust-counter, or plaza-sdk (verified this run).
  • Tree-wide grep for `rust-world|r
    ...[truncated 3420 chars]

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor
  3. added
    area/ciCI/CD pipelines, workflows, and build automation (area)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 9, 2026
  4. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-08 19:20 CST
    • Found via: filed this run
    • Task: Wire the plaza-sdk (9) + rust-counter (2) unit tests into a real venue + registry entry, and rebuild or drift-check the checked-in counter.wasm in CI — the standalone Rust guest crates are invisible to the pkgs/id workspace venues
    • Expectation: effort/s — done when both suites run in an enabled venue/flake check with a proven successful run, a registry entry names them, and counter.wasm drift is caught
    • Links: verification probe on laptop ~/git/fleet/probe-rust-sdk-20261108 (11/11 tests pass on origin/main @fda54ffdb9); body file creator-b-2026-11-08-1920/issue-rust-sdk-tests-no-venue.md in the goal hidden_files
  5. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked — awaiting triage

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 11, 2026
  7. 4 remaining items

  8. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged (inline, lane tmp-code-n) + picked up
    queue: repo-health-code-pilot
    task: 14257 (small_fix)
    issue: #7904

    Inline triage by the claiming lane (per runbook 1c): work kind small-fix (task/small-fix already present), priority/normal (already present — CI coverage gap for checked-in wasm, no user-facing breakage), effort/s (already present), kind/ci + area/ci + app/id already present. Removed status/needs-triage; the packet's acceptance stands: (1) cargo test for pkgs/id/examples/rust-world (plaza-sdk, 9 tests) and pkgs/id/examples/rust-counter (2 tests) runs in a pkgs/id flake check or enabled workflow job, proven by an observed run; (2) .github/test-suite-registry.json gains entries for both suites; (3) counter.wasm rebuilt by a check or drift-gated against a fresh build; (4) both suites pass unmodified — wiring only. First concrete step: dedicated flake checks in pkgs/id/flake.nix following the test-native-shell precedent, plus a counter.wasm drift gate following the roc-examples rebuild pattern. Proceeding to the fix in this same claim.

  9. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: parked (CI wait)
    queue: repo-health-code-pilot
    task: 14257 (small_fix)
    issue: #7904
    pr: #8543 (head 09691f8)

    Lane tmp-code-n triaged issue #7904 inline and implemented it in the same claim (PR #8543, branch queue/14257-7904-rust-sdk-venue):

    • New test-rust-examples flake check + just recipe (also in the ci aggregate): cargo test for both standalone example crates. Observed locally: plaza-sdk 9/9, rust-counter 2/2 pass.
    • New rust-counter-wasm flake check (roc-examples pattern): rebuilds counter.wasm via examples/rust-counter/build.sh with a wasm-target toolchain override (rustToolchainWasm, since rust-toolchain.toml carries no targets), then runs the sandbox lib tests against the rebuilt module. Observed locally: 36 passed / 0 failed.
    • A byte drift gate was built first and rejected on evidence: wasm bytes are not reproducible across rustc builds/paths (rustup vs rust-overlay builds of the same pinned 1.99.0 differ in producers/code sections, 49,799 vs 45,528 bytes; the old checked-in module matched neither) — full measurements in PR feat(id): run plaza-sdk + rust-counter tests in flake checks, rebuild-gate counter.wasm (#7904) #8543.
    • Registry entries id.examples.plaza-sdk + id.examples.rust-counter added; both checks listed in .github/scripts/id-pr-checks.txt (guard verified: 37 checks, list matches the flake); nix-fmt-check and just-recipes-drift pass. treefmt-check is red on clean main too (pre-existing; none of this PR's files flagged after a justfile blank-line fix).
    • First rust-counter-wasm attempt died on laptop disk ENOSPC (root 100% full); passed on retry after space freed — expect slow local id builds while the laptop disk is near-full.

    Parking as a broker CI wait on PR #8543. On resume: merge when checks are green and Codex is clean, verify on main, complete task 14257 as fixed_merged (issue closes via the PR).

  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 11, 2026
  11. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: done
    task: 14257
    lane: any-b
    summary: PR #8543 merged (squash, merge commit d254e43) at head 09691f8; issue #7904 auto-closed. Codex review completed with no findings on that head. Prior verification stands: flake checks test-rust-examples PASS (plaza-sdk 9/9 + rust-counter 2/2), rust-counter-wasm PASS (sandbox 36/36 vs rebuilt wasm), nix-fmt-check PASS, just-recipes-drift PASS, check-id-pr-checks PASS (37 checks). Merge followed standing merge authority (CI runs on main).
    next: none for task 14257

  12. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
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/idPackage/app: id (pkgs/ or apps/ in this repo)area/ciCI/CD pipelines, workflows, and build automation (area)effort/sSmall: expected under 2 hours of workkind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions