Volunteer exchange with a retained Nyxus graph

Enrolled volunteers browse affiliations, compare two groups, and manage their directed referrals. A coordinator enrolls profiles and assigns affiliations. One private Nyxus owner holds the principal-to-ID map, display profiles, revision and graph. Group IDs occupy 1–3 and volunteer IDs start at 4. The root pins the exact owner and the owner pins NyxusGraph::CONTRACT.

The work began as a disposable prototype. After the generated client populated and verified V1, the local exercise treated its interfaces, owner layout, and cursors as published. V2 added opt-in availability to the existing members query. The compatible addition comprises one optional request tag and one optional tag inside each response row. A V1 caller still receives its original fields. V2 reads the current availability saved by V1. Store authoring · Wire evolution

Installed result

  • Both canonical wasm64 images verified 25 staged SDK archives and 1,967 source and output files. The app used IC Wire 0.34.0 and exact registry versions through a physical Cargo directory source. PocketIC 16.1.0 came from the public consumer pin.
  • The largest group had 1,104 rows, through the graph's large-adjacency promotion and 1,000-edge leaf boundary. Its 64-row pages returned every ordered member. Equal affiliation weights left the ascending IDs as the tie order. Four comparisons returned 624, 96, 32 and 32 exact weighted intersections. The sparse 96-match run advanced through ten empty result pages before the first match. The opposite scan directions for the last pair preserved each side's weight.
  • Coordinator restrictions and malformed input refused before changing state. A mixed valid and invalid affiliation batch left the page intact. Repeated referral updates kept one edge and the same weight, a new weight appeared in both directions, and withdrawal removed the two projections while an unrelated incoming referral stayed visible. An enrolled volunteer could read their own referral list. Visitors and other volunteers received access refusals for the restricted reads.
  • The controller switch confirmed zero callbacks before KEEP. The same canister restored the new image. Both V1 bookmarks resumed with exact results. The original client scanned the hub, completed the main intersection and read retained referrals. The new query ran on installed V1, where its optional reply flags were absent. On V2, both clients decoded the same reply and the new client read present true and false flags. A V1 request against V2 returned byte-identical core output.
  • Fresh V2 availability and affiliation edits were visible to the new client and invalidated the old cursors. The old client started a new referral, V2 read it from the reverse view, and V2 removed it. Both views updated. The 64-enrollment maximum request was 10,306 bytes. The first full 64-row reply grew from 8,521 to 8,713 bytes with availability. A full projected page with two-byte IDs was 8,778 bytes. The original client accepted it within its preserved 400 KiB cap.

Developer experience

The packaged app creation skill led to the facade consumer guide and the Quickstart root. The graph guide gave the direct native constructor, logical anchor, and ownership contract. The replay used neighbors_into and merge_neighbors on bounded borrowed pages. Native graph continuation belongs to the app. The service stores no server-side cursor rows. Tokens bind the query inputs and application revision, and carry the last consumed anchor for each independent input. With a 96-row input buffer per side, one update-free intersection query does at most 128 comparisons and emits at most 64 rows. The host checks token progress as well as results. Graph guide · Native graph

The first canonical prototype built in 73.4 seconds. The release V1 and V2 builds reused a private target and took 25.9 and 27.5 seconds. The first installed oracle reached all enrollment and affiliation controls, then Node's strict assertion compared decoded null-prototype records to plain host objects. The values already matched. Projecting the flat decoded rows into plain objects corrected the test. The Wire guide documents this rule. The frozen loader then verified the unchanged original V1 artifacts after the app evolved at the same path. The live-source loader refused that build and named both edited files. This is the expected source freshness check. Wire host values · Packaged KEEP

The packaged graph guide's shared caller test appears as a commit-pinned repository link. The equivalent source is already included at crates/cdk-rsx-collections-minima/tests/graph_contract.rs in the bundle. Giving that path in the guide would make it discoverable from an extraction. A small authoring recipe could pair the existing merge kernel example with the two resume anchors and an empty result page test. The installed SDK graph, lifecycle and Wire paths passed with the existing tools. Performance, cross-SDK upgrades, and layout migration were outside this rehearsal.

Replay and identities

The app, runnable README, local replay script and working notes are in the ignored playground/xx10-wave9/ directory. From that directory run ./rehearse.sh to build the frozen V1 and current V2 into a fresh scratch tree and run the same local scenario. The exact-artifact command in the README reloads V1's saved source and reuses both verified original clients. A clean run outside Git took 71.9 and 26.5 seconds for the two canonical builds and repeated the installed checks and frame sizes. Its generated clients matched the originals byte for byte. The different absolute paths changed its compiled policy and Wasm identities, so only the paired within-run upgrade was exercised. The first working canonical command was python3 -B "$sdk/tools/build-app.py" --manifest-path "$app/Cargo.toml" --out-dir "$run/v1" --name volunteer --offline --locked --compatibility-package-archives "$stage/archives".

Harness revision 5fe555ca5a0c83dd6a3705c6b6759f5eab28737c. The SDK 0.1.0 tools bundle came from 54d3ff9285922b84f299f76e7eb477c5110c7598; the archive set was staged at fada422b6aa81a64c22602a999b6f83daf6fafa0. Both app locks had SHA-256 66f737edb6dbc0667c1c407016a81f126ec17364acde9a565d4cf34c917d85d5. The original exact-artifact replay result was 7cf5034ffa9a292899afefee2fb1c3c6eef4e8148adcfff0e58daf37f142919b. The clean replay result was 29c9c0e85b2873833ec12d9410bed6a1a030ec8f2909e26768f58fc000ddff56. The KEEP preflight found the same effective compiler identity for both builds.

SHA-256 V1 V2
Manifest b67527ae92d1556aafb958ce2564a6c0d2c65de857b74e5bab7ea5aad2f9501a be289b81540c1384b980c76afc970a417270572d0d522e20f176fd69bbcc9c12
Prepared Wasm 972040a746382c0e64e27f24ecfdb1708c093b844a54d0275d5f94badaa606e6 b291f19da41b0c8e0f5d77a26e1b1808d282e41a973d091fa6e243b372f8c03c
App source hash inventory 9575cbc9623639b2c0a69b283e48a5c4f52f13ab0bf9f59763f18cabb4b7713e 5932dd153af9a9a8aa41e6c895fe55bcdb818e9bbb3182b7df6df6bfcce07708
Generated client cb33b188ddda4481b796f95212653ecf3e91ad77f1e3bdceab36c11163efb1b4 c153d99aa87e3b63d0e31442b95aef8aae5288fc7bf03bd075d94a1e89c8152f