Equipment marketplace agent trial

Source baseline 2026-11-28, unified commit 1d8ed59866a47dcd54c332e4790356524873f15a, SDK tree c699daad6688a2bb1338634be5f223e58736ea58. Standalone, ignored application workspace playground/xx3/ has the app lockfile, graph, local notes and host fixture. This lane studies the existing SDK, using a fake debit and one piece of used equipment.

What we tried

The market lists and reserves one asset. A repeat checkout by the buyer returns the same execution ID. Other callers cannot reuse that reservation or read its status. Store owns the role-specific business records and ordinary Nyxus owns the graph, runtime and Reactor queues. The marketplace and ledger are distinct canisters using the same role-configured artifact. Each knows its peer principal at install time.

The checkout.takt.json graph defines a remote node and a success state. The ledger takes a route-bounded Wire message carrying the original execution ID, buyer, listing and amount. It checks the peer and origin identities, records a one-time debit, and returns its existing receipt if it sees the same operation again. One test mode returns malformed business reply bytes through valid Reactor transport after writing the receipt. The Takt reply mapping then returns Reply::Unknown. Reconciliation reads the receipt through a bounded call to the ledger, matches every field, reacquires a Store frame and resolves the saved operation key. The ledger receipt endpoint authorizes the marketplace principal. The buyer cannot submit unchecked evidence to the marketplace.

Authoring findings and changes

Observation Cause and verified authoring change
A fresh standalone offline lock reported failed to select a version for the requirement ic-wire = "=0.34.0". The seeded registry index predated Wire 0.34.0. A private online lock/fetch populated both ic-wire and ic-wire-derive at 0.34.0. App build attempts afterwards used --offline --locked.
Native compile produced five E0433: cannot find cdk_rsx_engine_nyxus in the list of imported crates errors from NyxusData, followed by apparently unrelated Takt PayloadContract trait errors. Importing the derive through Collections does not put the derive's emitted engine path in the package extern prelude. Added a direct cdk-rsx-engine-nyxus dependency. The first diagnostic was the causal one. The maintained Quickstart manifest already makes this dependency explicit.
Native catalog compilation rejected saved Option<Reservation> with E0080: native enum requires an explicit tagged representation at #[memory]. NyxusData and actual representation admission are separate checks. Switched saved optional fields to a local repr(C, u8) enum with explicit IDs and derives NyxusData and Tagged. Public Wire return values still use ordinary Option.
A redundant custom DefinitionFactory failed E0478 on its view lifetime. A pure generated workflow already receives Takt's blanket DefinitionFactory implementation. Pass the generated definition directly to driver::attach. Factories with projected actor services need an explicit borrowed view and the documented lifetime bounds.
Canonical preflight failed with failed to download cipher v0.5.2 although the standalone app's native check passed. The canonical builder also locks and loads metadata for the SDK tooling workspace. Fetched the full locked SDK manifest and the app's pinned Wasm target and standard library before the build.
First installed call failed the harness assertion assert.ok(id > 0n), before the ordinary checkout could complete. Takt's first allocated execution ID is 0. The same assumption would have rejected the debit in the mock ledger. Treat 0 as a valid opaque identity and use an option to express absence.
Installed reconciliation trapped with failed to encode args: wire allocation limit. The generated JS client had already called the same ledger endpoint using the 128-byte, 1 KiB allocation budget. Native encoder accounting exceeded the 1 KiB allowance for a small tuple. Leaving the 128-byte cap in place and raising the allocation allowance to 32 KiB for the receipt contract passed on the installed Rust sender and receiver. The experiment did not search for the minimum.
The node's uncertainty flag can become visible before the engine can resolve the node. Reconciliation looks for an uncertain blocked node. EngineView::resolve requires that phase. The UI's reconcile-ready flag now represents both conditions.
The maintained Chat fixture mixes older manual root admission and current orchestration examples. Used Quickstart's generated state-root pattern for admission and transient ownership, Chat's driver/transport pattern for wiring, and the callback fixture as a guide to failure boundaries. The app uses the current root macro's check and shutdown hooks.

Candidate developer-experience changes are a minimal canonical Takt/Reactor two-peer example, a manifest snippet next to the standalone Nyxus derive path, and a link from Store's first memory example to the explicit tagged-option recipe. All three are documentation hypotheses. No SDK defect is asserted by the above compile failures.

Installed result

The ordinary case and the fault case used separate pairs on the pinned PocketIC 16.1.0 executable 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6. The host imported the canonical generated TypeScript codecs, verified 1,645 build input and output hashes, and checked these outcomes.

  • The ordinary typed reply paid checkout ID 0. The ledger reported one debit and one attempt. Repeated checkout returned the original ID and the listing stayed reserved. An outsider could neither claim it nor read its status.
  • The malformed result left checkout ID 0 pending with outcome uncertainty and Takt attempt 1. One workflow remained pending with zero active logical calls and physical callbacks. Each side's Reactor inbound and outbound counts were zero. The ledger had already committed one debit. Attempting KEEP trapped at the application's drain check and preserved the existing order state.
  • A foreign caller and a wrong execution ID could not reconcile. The buyer settled the exact original order by receipt, without a second debit or debit attempt. A repeat reconcile returned false. Same-artifact KEEP completed with drained work and preserved the paid status and reservation.

Prepared wasm64 SHA-256 46b6acb38ccb71a10ead8dbeb10aba0f34b5ea5e7a460262e8bd61708e28c7db. Wire descriptor SHA-256 2407cf296eaba4466f926c32d028f2e3a251d07a71f10d608a0b3a425c3432ba. The canonical source manifest had 1,604 SDK entries with digest 57d7654abcb0826525d19cf6c5e3cb1146cc71a726e4c0281fe3dbc8ca54c2b6 and 21 app entries with digest a8e6a648770f2de1914a22dece64cee101db2e08cf08f26f306bc04fec6ff2b3. For each digest use SHA-256 of the sorted relative path lines, each in the form <file sha256><two spaces><path><newline>. These describe the exact selected manifest source inventories. Logs, build artifacts and structured results sit in tmp/ai-app-trials-wave1/xx3/. This is a single-listing correctness and authoring exercise. Production cancellation, indefinite paid history beyond configured Takt result retention, and runtime performance remain outside the measured slice.

Commands and skill material

From the repository root, use an owned cache and target. run below is a fresh ignored directory with cargo-home, target and temp.

export CARGO_HOME="$run/cargo-home" CARGO_TARGET_DIR="$run/target" TMPDIR="$run/temp"
export CARGO_BUILD_JOBS=3
source tools/env.sh
# Initialize an app lockfile once, then preserve it across runs.
# cargo generate-lockfile --manifest-path playground/xx3/Cargo.toml
cargo fetch --manifest-path cdk-rsx/Cargo.toml --locked
cargo fetch --manifest-path playground/xx3/Cargo.toml --locked
cargo fetch --manifest-path playground/xx3/Cargo.toml --locked \
  --target wasm64-unknown-unknown -Zbuild-std=std,panic_abort
cargo check --manifest-path playground/xx3/Cargo.toml --offline --locked --all-targets
python3 cdk-rsx/tools/build-app.py --manifest-path playground/xx3/Cargo.toml \
  --out-dir "$run/artifacts" --name market --offline --locked
node playground/xx3/verify-market.mjs "$run/artifacts/market" "$pocket_ic" "$run/result.json"

For a future workflow-authoring skill, load the Takt authoring guide for the graph, operations and compile-time stage contracts. Confirm the operation identity and participant's authoritative receipt rule before selecting Safety::Reconcile. Keep the effect identity in the bounded business request. Record definitive refusal, remote known success and unknown as different business decisions. A successfully decoded transport acknowledgement or an empty physical queue leaves uncertainty about the debit when the business reply cannot be admitted. Carry owned decoded values across await. Match the receipt against the saved attempt and reopen a fresh Store frame before EngineView::resolve. A host oracle should check debit count and attempted debit count separately. Use the installed prepared artifact plus the generated Wire encoder and decoder to test the fault branch.

Local packaging verification confirmed a future crates.io blocker. cargo package --manifest-path cdk-rsx/crates/cdk-rsx-source-policy/Cargo.toml --offline --locked built the archive and failed to compile its unpacked package. The error pointed to src/../../../compatibility/resolve.rs, which the package's --list omitted. Memory ABI's build script references the same shared SDK-root file. The facade also uses private package settings and path-only dependencies. Test release candidates by building their unpacked dependency closure and running canonical descriptor and Wasm preparation outside the checkout. This local dry run made no registry changes.

Quickstart manifest · Takt authoring · Physical ABI recipes · Orchestration · Canonical build