Ashroot as a CDK crate — 2026-11-10

Ashroot is now cdk-rsx-ashroot in cdk-rsx/ver1/crates/cdk-rsx-ashroot, imported as cdk_rsx_ashroot. It uses the CDK workspace manifest, lockfile and package conventions. Hylix and Minima remain optional features; the CDK facade, Store and Collections do not acquire a dependency on Ashroot.

The work started at unified newstack commit 12e033d5fc4dc3d972c3b60a8773326428905b2b. The resulting SDK subtree is 028aa8275dea10adcf66b0be34bba213455331ee. Builds below used that base plus the staged relocation, not the unmodified base revision. Each canonical build reported unchanged source during its own execution. The SDK is ordinary source in the unified repository, with no separate SDK checkout or gitlink.

Ownership and source review

Product source, crate-local tests and examples moved into the SDK. Current guides live in the SDK documentation. Standalone authoring checks moved to tests/tools/; the probe remains under tests/canisters/. Benchmark fixtures remain in bench/ashroot-overhead and bench/ashroot-scale. The 22 historical notes moved under the Ashroot research index, retaining original source identities; historical links were repaired without rewriting measured findings.

All 13 production source files were compared against the original locations. Twelve are byte-identical; src/macros.rs changes only three documentation examples to the new namespace. The eight reviewed implementation hashes in the rebuild-owner admission file are unchanged. No schema layout, index algorithm, relationship policy or engine implementation changed.

Consumers and generated scale source use the new package directly. The scale generator owns those changes and passes its consistency check. All 12 Rust key vectors were reproduced exactly against the relocated library. The fixture retains its original commit identities and vector data, records the recheck, and updates the caller-source hash for the namespace change.

Verification runners now select the named crate from the SDK workspace. Dependency snapshots traverse that package's resolved dependency graph, keeping unrelated workspace packages out of the proof inputs. Admission still rejects unapproved path dependencies and symlinks. The SDK Cargo configuration is explicitly recorded. These are source/tooling checks, not newly executed proofs.

The direct-control reuse checker explicitly excludes measured Ashroot implementation from its shared-source closure, even though it now falls under the broader SDK directory. Its existing explicitly shared definitions remain required; regression tests cover both boundaries.

Validation

The compiler/environment came from tools/env.sh and pinned nightly-2026-10-15. Builds used private caches, one owner per target, locked offline dependencies and fresh artifact/output directories.

Check Result
Ashroot crate, all optional engines 112 native tests passed
Standalone probe native test 1 passed
Overhead benchmark default / Hylix / Minima scenarios 12 / 12 / 13 passed
Scale benchmark tables1,indexes4 4 passed
Leaderboard and Hylix treasury examples Executed successfully
Public authoring boundaries 25 positive/negative cases passed
Versioned-policy checks Passed baseline, changed-policy refusal and restored baseline
Deterministic Ashroot fuzz smoke Mutations / relationships / migration: 4 / 6 / 5 authored seeds plus 256 generated cases each, seed 42; all passed
Verification tooling 172 unit tests passed
Scale host/oracle tests 12 passed; 2 artifact-specific codec tests skipped
Scale report / shared-control reuse tests 9 / 2 passed
Scale generator Regeneration and --check passed
SDK boundary guard, locked metadata and SDK formatting Passed

Initial benchmark invocations used mutually exclusive engine/scenario features or omitted a required scale selection. Those commands were corrected to the explicit scenarios above; no validation or product contracts were relaxed. The skipped scale codec tests require a selected scale Wasm artifact; the fresh probe lifecycle below exercises its own canonical Wire codecs.

Fresh canonical wasm64 probes were built through cdk-rsx/ver1/tools/build-app.py, including compatibility, preparation, inspection and Wire validation:

Probe Prepared bytes Wasm SHA-256
Default Nyxus 435477 24f791d0054cbf4b02f0cd45ecef12661d261c2a81c7867aaf81a4c1e588c91a
Mixed Nyxus/Hylix/Minima 617562 2e5090b02b40f2841d8f8542e933de1e667752dfa76c97c16482193810bce592

tests/pocketic/ashroot-lifecycle.mjs ran both fresh images with 32 rows per table against the qualified PocketIC binary SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6. All 12 lifecycle checks passed across 44 measured updates. Exact primary, secondary and reverse-index snapshots matched the independent oracle. Expected rejections preserved stable bytes; update traps rolled back. Replacements, bounded relationship actions, complete clear/repopulation and two populated same-image KEEP upgrades per variant remained coherent and writable. The owned server shut down normally and removed its temporary state.

No cross-image migration companions were supplied for this relocation run. These checks establish fresh build/import and exercised lifecycle behavior; they do not establish compatibility with old Ashroot binaries or equal measured performance. RRT's Heavy16 path does not depend on Ashroot and was not rerun.

The old top-level ashroot/ had no remaining tracked source or active process users. Its ignored build caches were preserved by moving the remaining directory to tmp/retired-ashroot-local-20261110. Existing worktrees and frozen benchmark binaries were left in place. Task-owned generated evidence stays untracked and is removed after retaining these findings.