Grants DAO round two

28 November 2026. The fresh app is in playground/xx2-round2/ and its local host is qualify.mjs. Round one

Approach

The controller opens a grant against a snapshot of the sorted current roster, specifies the approval threshold, and authorizes a sandbox payment. An immutable Ashroot row records each vote under a compound primary key of grant ID and frozen electorate ordinal. The app recomputes the yes/no tally with one bounded primary-key range read. Round one stored a tally plus a separate unique secondary index. This design tells us whether the guide's primary-range cursor example suffices when the row key already owns the uniqueness rule.

The council's Nyxus state owns the electorate snapshots, budget, recipient balances, and GrantPhase. The root attaches the council and local Rechain history, then binds both services. Rechain preparation checks the threshold, budget and previous payment. Commit writes the passed block ID and changes balances in the same synchronous update. The host reconstructs the Rechain V3 body commitments and parent links using the checked artifact's Wire schema and an independent Node BLAKE3 implementation.

The same agent authored both rounds. I remembered the earlier retained Option, visibility, and raw payload problems. I opened no prior app source, runner or research note this round. The current store and Wire guides supplied the mechanical recipes. The references were the current build guide, the Store authoring and upgrade guides, the Ashroot authoring guide, the Rechain contract, and the pinned Quickstart and probe sources read with git show where the frozen snapshot did not materialize the test tree.

Authoring observations

Observation What changed in the second app Skill input
The build guide now names both manifest fetches. Lock generation and both fetches succeeded on the preseeded private registry. Ran the documented app and SDK workspace commands before the locked check. Include both manifests and the exact Cargo home. Assess fetch diagnostics separately with an empty registry. Build guide
The store guide now puts the complete retained-enum recipe next to memory authoring. Used its repr(C, u8) payload recipe, Tagged derive, numeric discriminants, direct cdk-rsx-memory-abi dependency and feature gate from the start. The public status exposes an ordinary Wire Option<u64>. Follow the compiled fixture and build the actual target to prove memory admission. Tagged enum recipe
First compile error was no rules expected position in table!, with a note that the matcher expected backend. Reordered the named fields to key, row, backend, position, indexes, policy from the guide. Copy the working macro shape when the field syntax resembles order-independent assignments. Table declaration
After correcting macro order, the native check's compile-time reflection rejected the Quickstart-style root. The two E0080 messages were Children requires a certified module_children group or child container and native ABI alignment is unavailable. The council already used module_memory! to attach Ashroot. Applying the same helper to the root normalized the council's concrete generic memory as well. The plain Rechain child remains in the same group. Use the helper through ancestor declarations when a child's concrete memory transitively includes an Ashroot generic. Explain what dependency shape causes these otherwise opaque reflection errors. Ashroot installation recipe
The Wire guide now identifies the difference between a named schema alias and callable generated method codecs. Used the emitted createPayloadCodec with a single-ref extension-tuple for the audit body and header. The runner checks that the aliases exist in .wire.json and only the method codecs are runtime exports. It strips the empty extension block from the header's committed V3 core. Start with the producer's exact framing, then set payload byte, node and depth budgets. If the goal is ready-to-use named value codecs, qualify that path before training agents to expect a callable export. Wire runtime guide · Rechain commitments

The fixes for both compile errors live in the private app. A concise authoring example could include the exact diagnostics. The packaging change visible at the round-two pin moved the source-policy compatibility resolver to the versioned cdk-rsx-compat crate. This app still consumes the frozen checkout through local paths, so its result qualifies that build route.

Installed results and identity

  • Generated Wire calls accepted two approval patterns, counted a recorded no vote, and rejected duplicate ballots. A changed roster affected new grants while preserving the eligibility of existing grants.
  • The controller guard, insufficient approvals and insufficient funds each refused payment. Successful payouts of 35 and 50 credits reduced the treasury from 120 to 35 and created exactly two records after a repeated payout attempt.
  • Populated same-artifact KEEP preserved the history, tagged award receipt and duplicate protection on an open grant. Another approved disbursement paid the final 35 credits and appended a third linked block. The host verified all original bodies, body commitments, sources, ordinals and parent hashes. This is the local-history test, with separate IC certificate and mixed-version client qualification in other slices.
Identity Value
Unified commit and SDK tree b66884df99ae6b82bb223dcebb92707ab293f2bf and a017cd90e260974bdc499d45ee174825e5827c2b
Build target and feature set Canonical wasm64, no app features, nightly-2026-10-15 at rustc commit 7df81381d027710708209f36b98d11b1c88f8d2e
Exact recorded source list 1,600 entries in council.source-before.json, SHA-256 6a3169ac8841635c41b8399e92927bc65248e29a024838037335d299f61aa3c0
Installed Wasm SHA-256 e73792ad7503ed054261bc69bda3a59c4468ec39fbb1e5cf97d691b3837de26e
Generated Wire JSON SHA-256 dbfbe4da019ca667116ff0f3cf42e61e22627e9fe5118c34825c97161e2775c9
PocketIC 16.1.0 SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6

The first lock and native check started at 18:10:43 UTC. After the two source fixes, native checking passed and the first canonical build began at 18:12:50. It took 272.71 seconds. On that build, the first generated client call and the complete test passed by 18:17:32 UTC. Node 24.22.3 verified 1,620 source and artifact files and spent 8.21 seconds on local host execution, including server startup. This run used a cold private target and preseeded registry. The two app shapes and familiarity with round one make these descriptive timings.

Commands

From the unified repository root, use the frozen SDK, a private seeded registry and target, Node 24, and the harness's locked PocketIC and RRT host dependencies.

lane="$PWD/tmp/ai-app-trials-round2/xx2"
sdk="$PWD/tmp/ai-app-trials-round2/source/cdk-rsx"
export CARGO_HOME="$lane/cargo-home" CARGO_TARGET_DIR="$lane/target" TMPDIR="$lane/temp"
export CARGO_BUILD_JOBS=3
source "$sdk/../tools/env.sh"
manifest="$PWD/playground/xx2-round2/Cargo.toml"
cargo fetch --manifest-path "$manifest" --locked
cargo fetch --manifest-path "$sdk/Cargo.toml" --locked
cargo check --manifest-path "$manifest" --locked --offline
output="$(mktemp -d "$lane/grants.XXXXXX")"
python3 "$sdk/tools/build-app.py" --manifest-path "$manifest" \
  --out-dir "$output" --name council --locked --offline
node playground/xx2-round2/qualify.mjs "$output/council" \
  "$PWD/tmp/pr-benchmark-server-download/pocket-ic"