Rental maintenance desk second build

This round rebuilds the Hylix and Ashroot vertical slice with the updated authoring guides. Three private tables hold properties, contractors and work orders. Controllers manage properties and assignments. A tenant can report or list work for their own property. An ordered index bounds paging by property, due day and primary ID. Ashroot enforces Restrict on the property relationship and SetNull on the optional contractor relationship. First build · Ashroot authoring

The code is under ignored playground/xx4-round2/. The second app was authored from the current guides and the maintained Ashroot root, Hylix and PocketIC fixtures. It shares the first round's domain and acceptance criteria. The same returning author remembered the public memory-module annotation, the stable provider's reopen order, complete index cursors, the fixed field carrier, and the first host assertion's prototype issue. The run can confirm that the new guidance and exact commands work. It cannot isolate discovery time for a first encounter with the SDK.

What changed in the authoring path

Checkpoint First build Second build
Offline build preparation Fetching only the application left the SDK metadata closure incomplete. The first canonical build stopped on cipher v0.5.2. Generated a fresh lockfile and ran locked fetches for both manifests as shown in the revised guide. The supplied private Cargo seed supported all three commands offline.
Fixed field nested in an evolving reply A documented field-level #[wire(fixed)] form failed compilation. Switched to Fixed<Option<Refusal>>. The revised guide supplied Fixed<T> directly. The first native builds accepted the equivalent Fixed<Option<Fault>>.
Maximum legal nested response The installed 32 KiB allocation allowance rejected 20 valid rows, even under the 4 KiB encoded cap. Tuned the app and ran two more artifact builds. Started by measuring native maximum-shape admission for both V1 and V2, then chose the app allowance before the first installed build. The host fixture uses the widest admitted values and decodes the same live response through both clients.
JavaScript equality The host expected an object literal and initially rejected a decoded record with the same fields and a null prototype. The runner compares decoded field values using a host-only projection. The generated modules and their codec sidecars are imported unchanged.

Build an application · Evolving DTOs · Wire limits

Measuring the allowance before installing

V1 derives evolving Wire on the outer search types and every nested ticket from the start. V2 adds optional assignment at ticket field ID 3. A full page contains 20 96-byte UTF-8 summaries, 10-byte encoded order and contractor keys, maximum-width due days, and a continuation cursor. Both native probes used the SDK reply shape, an evolving one-element tuple around the reply DTO, and cdk_rsx::wire::evolve::with_encoded_payload. The initial search varied only the allocation allowance under a 192 KiB measurement ceiling with the encoded cap fixed at 4 KiB.

Native maximum fixture Encoded bytes Lowest successful allocation allowance
V1 2,501 94,208 bytes
V2 2,721 103,584 bytes

Selected 112 KiB for both artifacts by rounding the larger observed threshold up to a 16 KiB boundary, then repeated both native tests under that actual published allowance. These figures measure admission for the fixture. Heap peak and Wasm memory were outside the experiment. Write-side allowance can charge projected list materialization as well as the encoded output budget, which explains why a byte-size check alone missed the first round failure. The two native fixtures and the installed suite answer distinct questions.

Separate packaging check

The pinned snapshot still gives a precise local packaging failure. Running cargo package --manifest-path "$snapshot/cdk-rsx/Cargo.toml" -p cdk-rsx-ashroot --no-verify --offline --locked returned exit 101:

all dependencies must have a version requirement specified when packaging.
dependency `cdk-rsx-collections` does not specify a version

The direct dependency entry in the selected Ashroot manifest is path-only. This check ran against the pinned SDK source and reached manifest validation before making a package. Ashroot manifest

Inputs for a development skill

  • Start a new app with the pinned environment and one Cargo target and cache owner. Fetch both locked manifests before running the canonical offline builder. Preserve the exact generated V1 client module, sidecars, descriptor and prepared Wasm independently of the V2 outputs.
  • Put Wire on every evolving node from the first release and choose a stable tag for each new optional value. Use the SDK Fixed<T> carrier for an intentionally fixed DTO such as the refusal branch. A transport-only change can derive its new field from existing state without evolving the persisted table or its policy.
  • Build an actual worst-shape value and wrap it in the method tuple for the Rust encoding test. Take maximum counts, text lengths and integer widths together and include extensions and continuation. Set the response allowance after the native probe while keeping business and encoded bytes bounds. Test the resulting artifact on PocketIC and assert that the configured shape is served.
  • Keep the original generated client in the runner on both sides of the KEEP operation. Decode the exact same V2 reply in both clients to prove that the old client skipped present, unknown nested tags while retaining known values. A V2 client querying V1 provides the reverse absence control.

Canonical build order affected KEEP admission

The first installed run passed the generated V1 update, tenant restrictions, the tied index page, and the V2-generated query against V1. The first unexpected runtime error then came from the real PocketIC upgrade:

Canister called `ic0.trap` with message: 'root catalog rejected'.

The V1 and V2 builds used the same frozen app files and SDK snapshot, with only the transport feature selected for V2. Both canonical receipts passed check-wire. Each build's SDK root and private Cargo home prefix were exactly 65 characters long. V1's emitted rustflags placed the /icrustmem mapping before /cargo and produced compiler identity 827fefbf8888ba1e26689bbfd1aa1fbfafd104e93a9c9b19cc72992d80403474. V2 reversed those two flags and produced compiler identity 3dbe7e65935e8a89d9bf98985eea6f12ba3da596db4d9551ae134a173c8b7f0b.

The snapshot builder constructed those mappings from a set and ordered ties by path length alone. Separate Python processes can emit either order. The compiler policy sees the flag order and the installed root rejects the different class. For this experiment, a fresh pair with PYTHONHASHSEED=0 controls the ordering without changing the frozen SDK or app. The original failed run and its receipts are preserved under installed.Uro188/. The forum lane independently saw the same failure. Builder source

For a future skill, when an unchanged persistent declaration unexpectedly fails KEEP, inspect the two exact emitted compiler entries in *.policies.json and the remap flags from *.manifest.json alongside the memory contracts. This can distinguish a build-provenance mismatch from a storage-design or Wire schema issue.

Installed control result

The stable-seed control produced the same compiler identity in both receipts. Its prepared V1 Wasm is byte-identical to the V1 in the failed pair. Both generated client modules and descriptors are also byte-identical to their respective failed-pair equivalents. Rebuilding V2 to match V1's compiler identity let KEEP complete on the same application source and preserved the existing Hylix state.

Six installed checks passed. The V2 client read absent labels from live V1. After KEEP, the unchanged V1 binding and V2 binding decoded the same 76-byte reply. Only the V2 projection exposes the two present labels. Restrict still refused property deletion, and SetNull cleared both contractor links.

The maximum case used 21 rows to serve a 20-row page with a populated continuation. Every summary used 96 bytes. All returned order IDs, the contractor ID, and due days used their maximum encoded widths. The same 2,721-byte live reply decoded through both client modules, with present assignment extensions for V2. The 4 KiB encoded and 112 KiB allocation allowances held on the installed artifact. The results establish the tested shapes and releases. The first build's lower 32 KiB refusal remains a separate record.

Provenance and timing

Unified revision b66884df99ae6b82bb223dcebb92707ab293f2bf, SDK Git tree a017cd90e260974bdc499d45ee174825e5827c2b. SDK dependencies and builder selected the frozen copy under tmp/ai-app-trials-round2/source/. The pinned compiler was nightly-2026-10-15, Rust commit 7df81381d027710708209f36b98d11b1c88f8d2e. Both variants target prepared wasm64-unknown-unknown. The source inventory has 1,604 paths, including 1,589 under the SDK copy. The SDK subset digest is ce33d091a25e892165162fb1a46ce583cbe193e32b2361f627617aeb6bcb1762, hashing each entry as <sha256> <bytes> <SDK-relative path>\n in path order. Both failed-pair and passing-pair inventories recorded SHA-256 304c71d83244409a1e1451dcf51e96b039b5bfbcb82a9b8d40ef248baa7e42bb. The final runner verified 1,624 build input and output records per variant.

Passing version Prepared Wasm SHA-256 Generated client SHA-256
V1, no additional feature 59ec3b1ef67ba7cd7fa256a2d079673aaf8ca74eebfe72be7b76065bf96ce9ae 8031db8dadb8c26c402dac20e09f62cf93814890dca047a6b11599da67c9b9ed
V2, feature v2 ec19a497ef61093642aa8e335f2c5cefd80b24de64c5fe99bc1a4e29c5ea2dc8 127c843595323efc94d56912bf64c1e5ad4be95ca16d6c0bea52541c07a82a88

The declined pair's prepared V2 hash is 21fd85d05ddf4c7da97b037d465bb10560fe1d72549b07a53dc84d383e0e8bd6. PocketIC 16.1.0 was pinned by SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.

Initial V1 and V2 native builds took 19.64 and 2.22 seconds. The first canonical pair took 92.5 and 55.6 seconds. Its first generated-client success was at 18:14:35 UTC. The stable-seed pair took 54.8 and 40.7 seconds using the lane's previously populated target. It reached KEEP and the common reply at 18:16:49 UTC and completed the maximum-case check at 18:16:50 UTC. These are individual wall-time observations from a concurrent trial.

Run PYTHONHASHSEED=0 bash playground/xx4-round2/run.sh from the repository root with the pinned snapshot and lane cache prepared. This is the control command for the frozen builder. Its successful local run is under tmp/ai-app-trials-round2/xx4/installed.cxanl7/.