Installed root admission and application phases

Source review

Reviewed the SDK at unified revision b738eb3d152698e4e0e01f62185b201bbf92af3e (SDK tree 1f014fb411945b2ddc1d979ec830c6bc88b43699). The prepared KEEP startup checks the fixed bootstrap and clean-teardown marker, replays statics, then compares the saved SHA-256 catalog with the successor's current and declared previous catalogs. A mismatch traps before the startup opens retained pointers. Restore can inspect the retained root module's semantic tag with Store::root_contract() to select the typed conversion. The generated root publishes the target catalog after restore succeeds and binds the app. Prepared startup · Generated admission · Slot lookup

The catalog follows the owning module graph and covers actual layouts, retained representations, declared interpretation inputs, and compiler and kernel policies. The successor compiles predecessor catalogs with its own selected policies. A modular V1 to V2 converter handles an admitted app layout. A compiler or SDK change that alters a catalog implementation identity needs the separate exact-pair qualification workflow. Changes to the native heap ABI, allocator invariants or Store directory format need a separate migration design. Catalog inputs · Compatibility workflow

Separately reviewed IC source 49a94778d9aff90139cadc4f9c14b98b2aae42a4, rs/execution_environment/src/execution/upgrade.rs lines 293–316, 574–595 and 952–1014. KEEP uses memories from after the old upgrade hook. A failed successor routes execution back to the original canister state. This local source review is independent of the PocketIC executable below.

Installed replay

Rebuilt and ran the maintained root-authoring probe on PocketIC 16.1.0 (executable SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6). All six groups passed. With populated V1 data, identical KEEP preserved the tagged payload. Changed root policy and undeclared source trapped with root catalog rejected and left the old values live. A failure after target conversion and binding restored the V1 layout and child values. The declared conversion admitted V2, published its catalog, rejected an undeclared V1 downgrade, and preserved writes on a repeat V2 KEEP. The same run also passed the constructor and update Wire bounds checks. A separate host run used the fresh SDK Wire runtime and passed host:wire-codec.

The five canonical wasm64 builds used pinned nightly-2026-10-15 (7df81381d027710708209f36b98d11b1c88f8d2e), shared physical build roots, and the same original 1,837-file manifest inputs. The runner verified 1,857 input and output paths per artifact. The 1,589-file SDK subset has SHA-256 297c630cf4ad090fffedb28cd89341d4bc20a8f3707dbbd72896d31a52af4538 over records sorted by SDK-relative path as <sha256> <bytes> <SDK-relative path>\n.

Cargo features Prepared Wasm SHA-256
Defaults (V1) fde18db1f7227fe444762cd67de1fae8aed49b8f7a3bb69616d0855fa47fb8be
v2 96b7d3e2e4a343c2ebf0e47e54926695aba830a732f0f11ec58f81f4fc771618
bad-policy a33d9b1b91df3bf0d004273a0e25817bf0321bf77ba25995734b4d6981f08a55
v2,undeclared-source 06d8e5ebf352032d573c1d88fedd1111d90dc7b51641805ed2ff9a39cb42794f
v2,trap-after-save 26f22b78a62f21718dc45ed7a52be0eca82734610c90726c7b4414171d77ef14

To repeat, build the five feature sets using the probe's canonical recipe and distinct artifact directories. On a fresh source archive, create tests/tmp and provide the generated Wire runtime. Run the maintained lifecycle script with the corresponding artifact stems, a fresh output under tests/tmp, the pinned local PocketIC executable, and CDK_RSX_WIRE_RUNTIME set to the absolute path to V1's generated probe.wire.runtime.mjs. Build recipe · Lifecycle runner

Agent handoff

An agent using the project skill selected a clean local install for a new marketplace with disposable data. It asked for production status before choosing a path for an actual ICP deployment of unclear status. For an explicit local simulation it froze and populated V1, then assigned V2 checks using the old state and original generated client. The handoff now records the phase and names the compatibility boundaries the trial exercises. Application evolution · Trial method