Product recall registry

The prototype lets two authenticated manufacturers publish product notices and affected serial numbers. Readers search an exact serial and see all matching bulletins, including tied serials across manufacturers. A console starts a fresh local instance with two synthetic enrolled issuers and supports publication, search, and bulletin lookup. The V2 manufacturer view pages through that issuer's notices.

What the app used

One typed Store root attaches the opaque Ashroot database. The database owns Nyxus manufacturer identities, Hylix bulletin rows, and an ordered serial search index. V1 stores serial primary rows in Nyxus. V2 keeps the same Hylix row types and recodes serial rows to a Minima-backed Ashroot table with retained indexes. V1 already establishes the sole Minima physical authority and lets Hylix format its virtual byte image. Restore reads the admitted old database's Minima descriptor before opening the provider and attaching Hylix.

Registration is controller-only. Each publication checks the actual caller against the enrolled manufacturer, validates the complete bounded request, and preflights duplicate IDs before writing. The Hylix bulletin and its serial rows are written in one IC update. An unexpected storage error traps so the IC rolls back the update. Public IDs derive from bulletin IDs and serial positions. These logical keys are distinct from the backend's physical slot and generation handles.

I used the app creation and app evolution skills. The release consumer guide made the owning Store and Ashroot guides easy to locate in the selected SDK. The maintained mixed-engine and Ashroot fixtures showed how to build the provider and delegate a whole database conversion from the root. The first app schema was disposable. After checking V1 locally, I froze a V1 Wasm, source and generated client for the explicitly simulated production upgrade. Creation skill · Evolution skill · Package guide · Ashroot conventions · Mixed-engine fixture

Development findings

  • The first native check exposed application declaration mistakes. table! takes unsafe pub and module_memory! requires the explicit dependency list, including dependencies = [] when empty. The macro source and existing fixture made both fixes direct.
  • The first canonical build caught a Wasm-only mismatch between application refusals and the root closure's Ashroot result. Wrapping the typed business result in the outer storage Ok(...) preserved both error channels. Native checking had compiled the host descriptors. The maintained lifecycle probe includes the separate result and scope boundaries. A short typed refusal example in the authoring path would make the distinction easier to find.
  • The first installed run passed authorization, duplicate refusal and short searches. The full 12-row page exhausted 256 nodes and the reply diagnostic reported the exact wire nodes limit. After increasing that allowance, the same reply exhausted 128 KiB of traversal allocation. The app kept the 8 KiB byte cap. Native encoding of the populated DTO also identified the original depth allowance of eight. V1 now admits 1,024 nodes, 512 KiB of traversal allocation and depth 16 on replies. The native maximum-width test and the actual installed reply both passed.
  • The V2 native check caught the root converter returning the optional displaced value from ChildSlot::attach. The fresh target slot returns no displaced owner, so the closure now consumes the result with ? and returns Ok(()).
  • The V2-only Wasm restore also needed the explicit <memory::v1::Memory as ModuleMemory>::CONTRACT spelling used by the Ashroot fixture. The unqualified form reported E0284 and an unresolved generic lifetime/type bound. Using the qualified constant keeps the predecessor's exact type visible in the restore branch.
  • The first candidate used a distinct physical Cdk app source root. KEEP rejected at root catalog admission before the recode. The relocation control verified the original Wasm hash, stable image and exact results after refusal. The launcher now keeps one physical app path for both builds and adds only the two V2 module files after V1. It keeps fresh artifact directories and the byte-identical files covered by the V1 source receipt. This is a useful example to add to the evolution workflow alongside the rule to freeze the previous contract.
  • After the first installed path, the day-two change exposed the existing bulletin-to-manufacturer foreign index as a public page. It did not need a second persistent index or a new stored field. Using the same index after conversion gives an independent check of the Hylix table's Reindex path.

The shared-provider recipe is the longest setup step for a small mixed app. The release artifacts contain the component guides. A compact package-local example of format, descriptor recovery, open, and domain conversion would let a consumer reproduce the relevant fixture path without finding harness code. The SDK's current APIs were sufficient for this prototype.

Installed results

All six acceptance groups passed on local PocketIC. The generated V1 client enrolled two manufacturers, checked refused cross-manufacturer and duplicate publications, and verified exact ordered searches including high-width serials and tied results. The V1 image held 14 bulletins and 32 affected serial rows. The largest observed publication request was 481 encoded bytes with 16 serials, including the maximum u64 serial. The 12-result reply with 64-byte product names and 384-byte UTF-8 notices was 5,463 bytes.

The admitted failure candidate reported Ashroot migration map failed (source table 2, target table 2): InvalidKey from the serial recode. The original module hash and exact projection survived, and the 131,072-byte physical stable image retained SHA-256 1e18b16809a9e70570986cecbeacd51d092e846e0907c3aa80c2fa90fd3d1317. The valid successor recoded the populated Nyxus rows to Minima and checked the resulting search and relationship indexes through the original generated client. The same client published a new serial after the switch. The V2 client retrieved its bulletin and paged all 13 notices by manufacturer 7. A second same-image KEEP kept the recoded data readable.

The separate fresh V2 console session published both sample bulletins, searched their shared serial, and checked the bulletin and manufacturer views. The app's run.sh exposes build, check, demo, and shell. Each trial starts and stops its own local server. The runnable source, notes, and fixtures live under ignored playground/xx19/.

Source and artifact identities

Unified revision 8b85e4805fd95f3c2dc3541056ad33a5cd27ae6b, SDK Git tree d405961cde695504e25d8d1e0618ddd37f13d886. The application selected IC Wire 0.34.0 and the pinned nightly-2026-10-15 compiler at 7df81381d027710708209f36b98d11b1c88f8d2e. The measured local PocketIC 16.1.0 executable SHA-256 was 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6. The host was Node 24.22.3.

Evidence V1 V2 fault V2
Verified build records 1,627 1,629 1,629
Prepared wasm64 SHA-256 76c54a3596f47234fb62e7022c8a2cc89970e9ece02804f0fff490392073679f 863f86add7e3543153bc0e68986d657969737c90a2c4fb480dc729ff4b73e4e6 544206a7cddaea43426a14163dee1d3bcdfb12591bfb0072e3f68682731c6693
Wire descriptor SHA-256 f33d266c0e15dcc7b039e80611e6a424a3565f6659a9755d1c7763db0059bcc2 1ac2173e0fbf10e461c7edbb60d6a043642a29a6f980e4777085a5df83d3316f 1ac2173e0fbf10e461c7edbb60d6a043642a29a6f980e4777085a5df83d3316f
Generated client SHA-256 665a17dcda8a25f2d56e91279c3cd00ed1b805c954bb84922efdda94b91e1323 cbe6206dc0b0b5d1288a8ec465847ba73bd4df1615c29f071f685a2f6adc4b88 cbe6206dc0b0b5d1288a8ec465847ba73bd4df1615c29f071f685a2f6adc4b88

The 1,596-file SDK closure SHA-256 is c6575d3242b2e76552415079dc506c64b1dcbb72c0d70ff4490ec946b7d6c593. The 11-file V1 app closure is 5004d4ae88aad27c6669c4b90fe2ebf24156111b0c037e101312627f6f0970b9. Both V2 features used the same 13-file app closure 98534ab01517d8fc4774b504a9380a13ab29ee3274468903653a2ab67b611652. Digests use sorted source-relative sha256 bytes path lines. Both V2 receipts preserve all original V1 source records at their original paths. The acceptance runner SHA-256 is 3e31c6657b8c45167d88d3714a8384af4f37d476b29e0cec0892f358e3bb49d4.

The pinned dependency seed was ready at 22:48:29 UTC. The first canonical artifact reached PocketIC around 22:55 UTC. Iteration on the full legal reply and physical app path produced the final three canonical artifacts in 66.7, 58.5, and 58.0 seconds with seeded private caches. The final host runner took 7.6 seconds to first decoded call and 23.1 seconds for all six groups, including receipt checks and replica setup. These are local authoring timings. The trial made no matched performance comparison.