Tool library round 2
A fresh implementation in ignored playground/xx5-round2/ used the frozen SDK
at unified commit b66884df99ae6b82bb223dcebb92707ab293f2bf, SDK tree
a017cd90e260974bdc499d45ee174825e5827c2b. The twelve-tool branch exposes
public shelf browsing and staff-only issue, checkout lookup, and return. The
experiment keeps the round 1 use cases while
rebuilding the app and generated clients.
The desk keeps its Minima Root, BitmapSet, SlotArena and per-tool slot
lookup in private Nyxus data. The stable row contains the borrower's numeric ID
and a monotonically increasing ticket number. The returned ticket carries a
tool ID and ticket number. Each return checks the number on the current stable
row before mutating either collection. The lookup holds the current Minima
slot identity, including its generation. One transient service owns the Arena
through RefCell. Fresh install calls Arena::format on the sole physical
provider. The restore hook opens the retained owner, retrieves its saved Root,
and calls Arena::open before binding the service. V2 adds a release query and
reuses the frozen storage contract.
Minima foundation ·
Application memory conventions
Authoring and discoverability
- The updated build guide showed the standalone lockfile step and both SDK and
app locked fetches before the offline canonical build. In the prepared
private Cargo home, plain Cargo after sourcing the snapshot's
tools/env.shgenerated the app lock and completed both offline fetches on the first attempt. The dependency cache was already seeded. Build guide - The Store authoring guide now states that the re-exported
NyxusDataderive still requires a direct Nyxus engine dependency. That compile error from round 1 did not recur. The explicit clone forfixed_record!and the first stable-image expectations also drew on first-round familiarity. - The first native check of the new app failed with
error[E0080]: evaluation panicked: native enum requires an explicit tagged representationat#[cdk_rsx_store::memory(owner = crate::desk)]. The rejected field was[Option<SlotId>; 12], a new design for this lane. I initially skimmed the declaration section for the derive dependency and found the relevant retained-enum subsection by searching the exact error. I addedcdk-rsx-memory-abidirectly, enabledarbitrary_self_types_pointers, and used#[repr(C, u8)]withNyxusData,Tagged,Shelved = 0, andBorrowed(SlotId) = 1. The next native check passed. The endpoint DTO continues to use ordinary WireOption. Tagged native state - The updated Wire guide describes unit enum cases as
{tag, value: null}and warns about null-prototype records. The new test uses the generated codecs directly and takes the expected values from that contract. Host transport and receipt verification reuse the maintained harness helpers. Wire client artifacts
The fresh source came from current guides and memorized patterns, with a different loan lookup and provider binding. The old app source and artifacts were left unread. Familiarity, preseeded dependencies, a fresh lane target and parallel machine load qualify any elapsed-time comparison.
First installed failure
The first V1 build and generated-client checks passed. The populated V2 KEEP
trapped with root catalog rejected in PocketIC. The two canonical build
receipts contain the same flag arguments, but the source roots for
/icrustmem and /cargo are both 65 characters long and their remap
arguments appear in opposite order. The tooling fingerprint is identical in
the receipts. The builder constructs the remap list from a set and sorts by
physical path length. The different tie ordering enters the ordered
compiler flags. The failed pair remains under ignored
tmp/ai-app-trials-round2/xx5/run.eBDAIm/.
Canonical remapping code ·
Compatibility contexts
The diagnostic rerun used a fresh pair from the same app and SDK, with
PYTHONHASHSEED=0 set for both builder invocations. The ordered remaps
matched. Both PocketIC sessions passed. The failed and passing receipts share
source inventory SHA-256
da7e3390b75b5a38bd02e2cab93c5a89229d9cffcc0dddb036c296ba0afa7b7b.
The V2 Wasm stayed byte-identical at
5c66a494897f2fe7b977d1cc5328dec2e55466738b66412c73b1d395c0224512.
The V1 Wasm changed as its ordered flags came into alignment. The passing
diagnostic pair is in ignored tmp/ai-app-trials-round2/xx5/run.ZjXYUq/.
This reproduces the builder issue found independently in the forum trial. A
stable tie-break for equal-length remaps is the candidate builder fix. The
seed setting here is a diagnostic workaround on the pinned source.
After the diagnostic, I moved the tool-ID-to-array-offset calculation into the frozen owner declaration. The same mapping now determines the saved lookup's interpretation and becomes part of its admitted source.
Installed result
Two fresh PocketIC sessions passed on the final V1 and V2 artifacts. Public pagination covered all twelve tools and the controller guard withheld checkout details. When the first loan had been returned, reissuing the same tool kept the SlotArena high-water mark at one. The stale ticket was refused with the new checkout still present and the tool absent from the shelf. V2 KEEP preserved two active loans, their shelf membership, and all 196,608 stable bytes. The V1 generated client read and returned those loans on V2. A fresh V2 issue received ticket number four, and its checkout was visible through the original client with the same high-water mark.
The first successful native check was at 18:11:43 UTC. The first installed V1 client call landed at 18:14:08 UTC. The one-variable passing KEEP landed at 18:15:33 UTC. The final warm V1 and V2 builds took 26.7 and 26.8 seconds, with both installed runs complete at 18:17:27 UTC. Times are for 28 November 2026 and include this session's parallel load and test setup.
The first round's local packaging failure also recurred for the frozen
commit. With the lane's SDK environment, cargo package --manifest-path <frozen-sdk>/Cargo.toml --package cdk-rsx-collections-minima --offline --locked --no-verify --allow-dirty exited 101 because the collection crate's
path dependency on cdk-rsx-engine-minima has no version requirement.
The packaged Quickstart rehearsal
covers a different package set.
Input for the SDK skill
- For Minima, find the owning domain first. Save its Root and collection descriptors in admitted Nyxus data. Give the physical stable provider one owner and rebuild its transient Arena through the restore hook.
- Use ordinary Wire options at the transport boundary. For optional
retained scalar or aggregate data with no approved niche, declare tagged
cases in the physical owner and decide the fixed discriminants before
shipping. A native
checkcan catch a nested unsupported option through the generated memory catalog, with canonical Wasm needed for qualification. - Preserve the exact business ticket independently of the internal storage
handle. Check a delayed return after free-list reuse and verify both shelf
membership and active loan using the installed client. Minima block zero is
the authority marker, and an empty
SlotArenaacquires its first payload block on demand. Compare stable bytes only after recording the actual populated image. - Use one NodeBuffer per synchronous call for both collections. An expected refusal returns before app writes, and an invariant or backend failure uses the root trap path for IC rollback. Leave the reader and writer entry points separate so the host can check public browsing and protected loan data.
- The smallest next documentation improvement is a link from the Minima
guide's private retained descriptors paragraph to the Store tagged-layout
recipe. That lets an author considering
Option<SlotId>reach the rule before writing a descriptor record. A single-engine Minima install/reopen snippet could follow the link if fresh app trials repeatedly have to untangle the mixed-engine fixture.
Reproduce
Use the frozen snapshot at tmp/ai-app-trials-round2/source/, the prepared
private lane cache, Node 24 and the pinned PocketIC server. The ignored
playground/xx5-round2/run.sh sources the snapshot's environment, creates a
fresh artifact directory, builds both releases and runs the host probe
twice in fresh sessions. The matching artifacts in this report used this
diagnostic invocation from the harness root:
PYTHONHASHSEED=0 bash playground/xx5-round2/run.sh
- Both builds captured 1,602 files. Their
source-before.jsonSHA-256 isa84d0466a50c88d1dcf5688b6d196c55ff7f8f624f4db77c746a67d9fa2e0fc7. The 24 SDK packages selected by app metadata plus SDK workspace manifest, lock, toolchain and Cargo config account for 312 captured files with digestfd77c1c0571f607380e6e1ecc44a9b56cbc9e023c22c22b4029df8d7a683072b. The full captured SDK and builder closure accounts for 1,589 files with digest8edad4db7ebd2bd7af17c1d2c2ad613f13387c7472fd09c2bdb35bf3881d213a. The filtered digests hash one line per captured file in inventory order, with SHA-256, two spaces, the path under logicalcdk-rsx/and a newline. The standalone app lock digest isb23b01d3ca80ec16bdc4ed14734daf0378c5cc45d6de04affdb635d3388e3e4f. - The frozen directory's 1,608 tracked SDK blobs matched the recorded Git
tree. The compiler was
nightly-2026-10-15, rustc revision7df81381d027710708209f36b98d11b1c88f8d2e. Node was v24.22.3 and PocketIC 16.1.0 SHA-256 was6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6. - Each installed run checked 1,622 source and artifact records per release.
Raw build and run output remains under ignored
tmp/ai-app-trials-round2/xx5/run.UsMGE6/.
| Release | Prepared wasm64 SHA-256 | Wire schema SHA-256 |
|---|---|---|
| V1 | f2550a4be838e0b8a134b18e00388a64c1c48b7821644b31f2e7aeaf5a3b6b42 |
630ca56e065c1a78452974a0143a515ce92592520b0b5e3aad5c67975729eccc |
| V2 | 7cc202250f06841ed8d12f3f9d0b6824efe56148e5430f7bf47b7220d280e67a |
1a9c29dfaf20b8fce4ec231def99be00301183e9e98a5e76d93b4327c4fb9a0a |