Round 2 local history archive

At SDK pin b66884df99ae6b82bb223dcebb92707ab293f2bf, the original generated V1 client resumed an upload after an installed V1-to-V2 wasm64 KEEP upgrade. V2 added an optional fourth slot to the Wire status reply. The same V2 reply bytes produced the original three values in the V1 codec and a present 196,608-byte remaining count in the V2 codec. Before upgrade, the V2 codec read the absent slot in the V1 reply as null.

What ran

The new ignored app is under playground/xx6-round2/. A single Hylix owner holds one publication and at most one draft. An editor starts, appends, publishes or cancels. The draft keeps an ordered hylix::Vec<Blob> of the accepted chunks inside Option<Draft>. Exact offsets and part lengths bound the vector to four chunks. Publish makes a single immutable Blob using from_reader and one reusable 64 KiB buffer, retires the old publication, and then retires the draft with its owning vector. Cancel retires that same draft. Round 1 keyed chunks by offset in a stable map. The current design can put chunk ownership directly inside the draft because this upload accepts only the next part. Hylix collections

PocketIC installed the canonical V1 artifact, let the editor publish an interview and commit the first 65,536 bytes of a 262,144-byte replacement. An unauthorized caller, an attempt to start a second draft, an oversize part within the Wire envelope, a repeated offset, and premature publication were refused. The original publication stayed readable through the upgrade. The full 196,608-byte stable image matched byte for byte before and after KEEP. The original V1 client appended the remaining parts and published once. V2 read every replacement byte and the EOF boundary. Four more equal-size draft cancellations kept stable capacity at 1,114,112 bytes after the first cancel. A stale receipt failed against a later draft.

This run compares two app releases built with the same SDK snapshot and shared memory declaration. Only the public response adds a field. Stable capacity reuse is a bounded check on this configuration. Wire evolution

Developer experience

I rebuilt the app for this round from the current build, Store, Hylix and Wire guides and the pinned Hylix canister fixture. I remembered the first round's problem, architecture and failure cases when choosing the new layout and acceptance assertions. The first app code, runner, lockfile and generated artifacts remained untouched. This is a repeat study with prior knowledge. Round 1

  • The revised build guide led directly to online lockfile generation and locked fetches for both application and SDK manifests. The first command logged at 18:09:57 UTC and canonical build started at 18:09:59 UTC on a prepared dependency cache. The first lockfile, fetches, canonical V1 and V2 builds, and installed test succeeded. In Round 1, the first offline lockfile generation missed IC Wire 0.34.0 and the builder then missed cipher 0.5.2 while resolving the SDK workspace. The preload and updated guide both contributed to this repeat. Rust 1.100 in the current package metadata also matches the IC Wire 0.34.0 dependency floor. Build guide
  • The first exploratory read of the partial source snapshot produced sed: can't read tmp/ai-app-trials-round2/source/README.md: No such file or directory. The harness README remained in the checkout and the snapshot contained the pinned build guide and SDK crate guides used here.
  • The Wire guide now describes null-prototype DTOs. The first generated client run compared typed byte fields directly and avoided the original strict-equality failure against an ordinary object literal. Wire client representations
  • The Hylix collection guide explains immutable blobs and ownership retirement. Exact Blob::from_reader and read_range usage came from collection source, and provider wiring came from the runnable Hylix probe. A short linked recipe for resumable upload, explicit retirement and stable provider reopening would place the pieces together for a new author. Blob source · Hylix fixture
  • The current facade uses versioned path dependencies, and the shared compatibility resolver lives in cdk-rsx-compat, imported as an ordinary package dependency by source policy and memory ABI. The first trial's outside-package path was removed from those two sources. This experiment built from the source snapshot. The packaged SDK case has its own rehearsal.

Skill inputs

Show a bounded Hylix chunk workflow with an explicit editor, upload ID, declared maximum, and sequential offsets. Validate business refusal before mutation. Keep the old blob live until all draft bytes are present. Retire displaced and canceled owners inside the write frame. Preserve the same persistent declaration across a presentation-only schema change. For the compatibility oracle, keep each release's generated binding and companion runtime together, send the actual request, and decode the same new reply through both versions while the extension is present. A compatible reply with an absent extension alone leaves the forward-skip case untested.

Keep mutable runner and notes beside the Cargo package so canonical provenance captures app build inputs cleanly. These commands assume the ignored app and pinned source snapshot are available, the lane owns its caches, and the test harness dependencies are installed.

archive_lane="$PWD/tmp/ai-app-trials-round2/xx6"
archive_source="$PWD/tmp/ai-app-trials-round2/source"
archive_manifest="$PWD/playground/xx6-round2/canister/Cargo.toml"
archive_replay="$(mktemp -d "$archive_lane/replay.XXXXXX")"
export CARGO_HOME="$archive_lane/cargo-home" CARGO_TARGET_DIR="$archive_lane/target"
export TMPDIR="$archive_lane/temp" CARGO_BUILD_JOBS=3
source "$archive_source/tools/env.sh"
cargo fetch --manifest-path "$archive_manifest" --locked
cargo fetch --manifest-path "$archive_source/cdk-rsx/Cargo.toml" --locked
python3 "$archive_source/cdk-rsx/tools/build-app.py" --manifest-path "$archive_manifest" \
  --out-dir "$archive_replay/v1" --name archive --offline --locked
python3 "$archive_source/cdk-rsx/tools/build-app.py" --manifest-path "$archive_manifest" \
  --features wire-v2 --out-dir "$archive_replay/v2" --name archive --offline --locked
env -u RRT_PIC_SERVER_URL -u RRT_PIC_STATE_DIR node playground/xx6-round2/acceptance.mjs \
  "$archive_replay/v1/archive" "$archive_replay/v2/archive" "$archive_replay/acceptance.json"

Run identity

  • Unified commit b66884df99ae6b82bb223dcebb92707ab293f2bf, SDK tree a017cd90e260974bdc499d45ee174825e5827c2b, compiler nightly-2026-10-15 (7df81381d027710708209f36b98d11b1c88f8d2e), target wasm64-unknown-unknown, Node 24.22.3. PocketIC 16.1.0 SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.
  • Both verified canonical manifests captured 1,589 paths relative to the SDK snapshot, including the host tool closure. Sorted UTF-8 path<TAB>sha256<LF> rows hashed to 71871d60abfd675cf3ba6b01572476d314be4a85dcbf9570bbeae6402f16593a. Every captured SDK row also matched the corresponding Git blob at the pin. The verifier checked 1,618 inputs and outputs per version.
  • App lockfile SHA-256 86a662cf64d60a415cb7280eab56517c269cb01b58ffda4d7593c3392e30f5b5. Runner SHA-256 a7e137d2db107a64bfe10e126a9992b9dc0e709e846bd25e41337e319c8d60c8.
  • V1 with default features. Wasm 34113beb655ab02172b7caef8435643b6c35adb6fd682dddb9f8db06ac60c5b8, Wire descriptor 9df3a1bec486cfc6455bc6529b29c7268e1f10116e5d822dbb5c1504cf52b4f7, generated binding c9514bb000a85eb596b01ffb3113b84533f01c321f13b6973397da9bd01489cd.
  • V2 with wire-v2. Wasm 7cde6e998e74ad58414a98a05b1b4f21b4217b975109642f6eb0474d29636b2f, Wire descriptor 3d19a2657e1b744743fba66260e6906fa4325873c8d1758f9a8a5b93def455ef, generated binding ff8e0b21a818b69847ed6045f9064365522e8f2b3a0982de36b28b0ad5f8e93c.
  • Stable image on both sides of KEEP 9fbc28e250e1ad0bfff84956700bc4d0cab43b84b8e50302b8aecdf6572f9a2e. The final readback matched 262,144 fixture bytes with SHA-256 aa410c09344f8604c26c04b390e5b3d9db1b76653b673481f6a7b7c1811c0707.
  • Build receipts recorded 76.0 s for V1 on a fresh target and seeded dependency cache, then 25.5 s for V2 on the same warm target. Artifact verification and the PocketIC run took 9.8 s. Round 1's recorded final 30.4 s / 15.3 s pair used a warm target after an earlier V1 attempt. These are host checkpoints with different target states and app layout.