Ashroot core qualification — 3 November 2026
The library now checks primary presence without decoding values, clears complete domains through ownership retirement, and fuses native row conversion with index construction. Foreign-key migration validation streams references instead of collecting them. Existing declaration helpers accept inline table validation and ordinary record field attributes. The SDK preserves original conversion errors at two existing trap boundaries without changing public callback signatures.
The matched 1,000-row-per-table IC workload passed with identical results and snapshots. Clearing 3,996 rows used 80.03% fewer instructions for native storage and 89.95% fewer for mixed storage. All twelve canonical evolution images built, and all available migration/integrity cases passed. Heavy16 qualification keeps Nyxus RRT and Hylix RRts as separate comparisons; see below.
Sources and method
| Role | newstack | Actual SDK |
|---|---|---|
| Baseline | 96ffd1d990be3dfb36f67b404f3826d0013d326a |
0cad0e28baf8383def0a7ab515fd6b67a83bba39 |
| Initial candidate, rejected by RRts gate | 88469d90af9440d563f68a08ff52d3e56a98d9d7 |
c9e963a27dee9aac296d0b116fea9144c919332f |
| Second candidate, rejected by RRts gate | 6b8476bf57aae91b7dce0dc84119c90d25430c5b |
b1b321672aab1cfcbb9642d6e863f8abc5eb1982 |
| Final implementation and Ashroot probes | a055647635638f0fbf2822fb9f9cae0348d824c6 |
51f050bae1ea43114c95bd21010355bf67163220 |
| Final RRT/RRts qualification snapshot | 96ffd1d990be3dfb36f67b404f3826d0013d326a |
51f050bae1ea43114c95bd21010355bf67163220 |
The selected RRT/RRts factory checkout intentionally retains the baseline gitlink while mounting the selected SDK as an independent worktree. Its actual SDK identity and input hashes, rather than its parent gitlink alone, identify the build. No RRT/RRts application or workflow change is included. Both arms were freshly built in isolated relocated checkouts with separate targets and the same canonical flags, compiler, memory profile and Wire interface. No earlier absolute-path receipt was treated as a fresh build.
Compiler: pinned nightly-2026-10-15, Wasm64, release optimization 3, thin LTO,
one codegen unit. Measured server: PocketIC 16.1.0, SHA-256
6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.
The independent IC source review records its separate local revision and dirty
state; it does not identify the measured binary's source. No web-derived runtime
limit replaces the configuration captured from that server.
Implementation and safety
Ashroot's Hylix adapter selects the SDK's explicit Map::contains_by primitive.
It uses a dedicated traversal with the existing header, key search and child
validation primitives. The SDK's existing get/edit/contains_key operations
retain their original implementations and payload-validation behavior. Ashroot
presence borrows the same fixed node bytes, but does not decode or retire the
value. It does not claim
smaller node reads. Minima checks a slot through its 16-byte header without a
workspace or payload decode, retaining provider ownership, bounds, generation and
live-state checks. A stale Minima directory entry reports corruption. Presence
establishes identity; payload codec validation remains the job of an explicit
read or conversion.
clear_all counts and admits the work before replacing each table's private row
owner and clearing its indexes. It retains public module identities and retires
owning rows exactly once. The old global row-ID collection and per-row index
preparation are gone. Its existing logical byte admission charge remains, even
though there is no corresponding row-ID allocation. Custom index authors still
must implement correct clearing and retirement.
NativeValues retires source indexes before target indexes grow, while source
row owners remain available to their mappers. Each converted row passes through
the existing validating/indexing sink immediately. The final complete target FK
pass remains. Hylix's balanced owning-value migration builder is unchanged.
Migration row and conservative edge budgets still apply. With no library
reference staging buffer, the shared bytes limit does not cap mapper, provider
or backend allocation; zero is valid for streaming migration. Empty migrations
can use all-zero budgets. Applications must qualify their actual peak storage
and total upgrade cost.
Inline table! validator tokens join the supplied interpretation policy.
Declarations without validators retain their supplied policy exactly. Helpers
and external configuration remain explicit policy dependencies. record!
forwards ordinary field attributes; conditional fields fail during compilation
because all generated codecs and ownership proofs must refer to the same fields.
An ordinary struct with explicit implementations remains available.
There is no new overlay, rollback journal, registry or migration continuation protocol. An IC trap rolls back the execution or failed upgrade. Native failure tests quarantine/discard the failed Store; catching a native panic does not simulate IC rollback. The single synchronous upgrade policy remains in effect.
Native and authoring checks
| Check | Result and scope |
|---|---|
| Final Ashroot all features / default | 93 / 72 passed; 359 recorded source inputs unchanged during both runs |
| Hylix-only / Minima-only | 82 / 83 passed on the initial SDK candidate; complete input inventories unchanged during each run |
| Migration and migration diagnostics | 18 all-feature / 17 default passed after the retirement reorder; included in the revised full suites |
| SDK Hylix collections | 100 native and 16 doctests passed |
| SDK Minima library and slot tests | 345 passed; one existing ignored test |
| SDK Store | 52 native and 13 compile-fail tests passed |
| Declaration helper tests | 4 all-feature / 2 default passed |
| Wire field attributes | Exact renamed-field encoding/decoding and handwritten registry comparison passed; stable fixed codec unchanged |
| Authoring diagnostics | 25 cases passed, including conditional-field rejection |
| Versioned policy capture | Six cases passed, including validator-body-only mutation with a fixed supplied base policy |
Tests measure value decode/retirement counts, Minima header bytes, owning Blob ledger cleanup, non-Clone native row retirement, stale directories, mixed-engine clear/reinsert, source-index retirement ordering, conversion/validation/indexing order, early refusal and quarantine. The policy test changes the actual selected table declaration; its parent policy does not capture that file indirectly. Comment/test-only changes leave installed contracts unchanged.
The two SDK conversion-error tests retain WrongContract and missing-child
NotInstalled causes and preserve quarantine. There is no generic callback error
parameter, new try_* family or caller annotation requirement.
Matched ordinary and bulk IC workload
Both revisions ran the unchanged normal oracle with 1,000 rows per table: 22 captured calls and 12,005 completed/seeded rows per arm. All 132 traces (66 per revision) were independently audited. Refusals, three expected rollback traps per revision (one per engine/control arm), KEEP, complete snapshots and final populations matched.
| Same arm before → after | Baseline instructions | Selected instructions | Change |
|---|---|---|---|
| Native clear, 3,996 rows | 18,338,181 | 3,662,179 | −80.03% |
| Mixed clear, 3,996 rows | 84,013,791 | 8,439,642 | −89.95% |
| Native complete 22-call stream | 94,956,693 | 80,368,386 | −15.36% |
| Mixed complete 22-call stream | 290,018,104 | 213,343,459 | −26.44% |
| Manual native negative control | 95,613,379 | 95,613,379 | identical |
These are whole replicated execution instructions, already including page charges. The handwritten manual control still clears per row. It verifies unchanged external behavior and counters; it is not an optimized bulk-clear lower bound or a measurement isolating Ashroot coordination overhead.
Exceptions are retained: native initial seed costs +80,000 instructions (+0.260%), exactly one extra accessed-page charge. Seed after clear costs +87,231 (+0.283%), including that extra page. Mixed clear-row-limit refusal costs +5,890 (+1.038%) with unchanged page charges; the full count preflight is a plausible source of extra frame work, not a measured causal attribution. Native's same refusal saves 79,557 (16.34%). Small scalar deltas include mixed increases up to 29 instructions in the initial candidate; these mixed scalar increases disappear in the revision. Native remove-restriction still costs +56. Full per-operation data is archived.
Final grown Wasm/stable capacities are unchanged within each arm. These are capacity/accounting measurements, not live payload, peak allocation or resident RAM. Local traced host timing is retained separately and is not an IC latency claim.
Evolution and single-upgrade migration
All twelve canonical images passed build and metadata checks. Native and mixed
V1→V3 and V2→V3 cover final-FK refusal, late upgrade rejection, SetNull effects and
uniqueness conflicts, SetNull trap rollback, cascade cycles, bounds, complete
paged oracles and repeated KEEP. The optional mixed/Hylix-car case passes its
available cases; final-FK refusal and late-rejection companions are explicitly
NOT_RUN there. Those cases pass for both main engine variants.
The fresh stream contains 564 calls and 978 completed row changes: 188 calls and
326 changes per native, mixed and manual-native arm. Scalar and bounded batch
results match. This is a fresh integrity/cost screen, not a before/after
measurement of migration speed. Native V3 car conversion exercises the new
NativeValues path; mixed conversion retains its existing recode path.
The mixed 50,000-row-per-table upgrade converts 200,000 source rows into 150,000 retained target rows, retires 50,000 rows and adds two empty tables. Its one post-upgrade execution spans four real DTS slices. Whole Wasm execution costs 6,076,546,475 instructions; the actual management debit adds 45,132,200, giving 6,121,678,675, exactly matching prepayment minus refund. Page charges are already included. The server records a 300B install/upgrade allowance and a separate 40B ordinary-message allowance. Target compilation is warm from earlier cases in this session; this is not a cold-compilation worst case or a universal app limit.
Actual IC fixtures here use portable scalar rows. Owning Blob retirement and native allocation preservation are covered by the instrumented native tests; this report does not claim an arbitrary owning-payload IC-clear measurement.
Wasm size
Same probe feature set and Wire interface, freshly built at each revision:
| Image | Executable Code section delta | Prepared module delta | Canonical gzip delta |
|---|---|---|---|
| Native | +2,259 bytes (+0.609%) | +660 | +129 |
| Mixed | +2,243 bytes (+0.441%) | +1,069 | −44 |
| Manual negative control | 0 | −824 | −14 |
Code sections are measured with WABT; canonical gzip comes from the recorded SDK build inspection. Debug/name/path/custom sections can change prepared sizes and compression independently of executable code. No unused-engine cost is inferred from these instantiated schemas.
SDK Heavy16 regression controls
Each pair uses sixteen canisters, the unchanged heavy workflow mix, 1,000 requests/second for 30 arrival rounds, 600ms simulated rounds, batches of 1,024, 500M execution budget, concurrency 4,096, callbacks 40 and 1.9MB batch bytes. Both complete 18,000 roots plus 1,200 children, 594,000 steps, 202,800 task attempts, 180,000 endpoint messages and 360,000 Wire items, without traps or reoffering. Complete native traces include normal publication/maintenance tails. Nyxus and Hylix remain distinct controls; no cross-engine cost ratio is claimed.
Nyxus RRT baseline and selected are exactly equal in primary instructions (91,988,921,785), complete instructions (91,990,893,178), page charges, cycles, 2,434 physical calls, 48 primary plus one maintenance round, all retained latency distributions and final Wasm/stable capacities (269,484,032 / 0 bytes). Executable Code length is unchanged at 2,011,066 bytes; code bytes differ. Prepared size falls 490 bytes and analyzer gzip grows 717 bytes. PocketIC's installed-module accounting grows 834 bytes per canister (698,595 → 699,429), while grown heap/stable capacities and timed cycles match.
Hylix RRts also matches baseline exactly in primary instructions
(370,089,911,553), complete instructions (370,092,289,418), page charges,
2,080 physical calls, 65 primary plus one maintenance round, all retained latency
distributions and final Wasm/stable capacities (269,484,032 / 239,403,008 bytes).
Complete per-function instruction totals match for both engines. Hylix Code
length is unchanged at 2,861,345 bytes; Code and Data byte hashes differ.
Prepared size grows 1,090 bytes and analyzer gzip grows 3,988 bytes (0.482%).
Hylix total cycle charge grows by 684 cycles, from 917,787,617,729 to
917,787,618,413. All of that difference is the measured ic.cycles.storage.v1
debit: 11,031,859 → 11,032,543, with sixteen events in each arm. PocketIC reports
4,112 more stored module bytes per canister (843,124 → 847,236), while every
other memory component and message-memory byte count matches. The same 35-second
charging window, recorded per-day rates and integer-rounded debits reconcile
exactly to the 684-cycle difference. All execution prepayments/refunds and other
runtime charge rules match. This is measured module-storage accounting, not an
inferred explanation for an execution cost change. Absolute cycle balances also
retain pre-window setup offsets; the measured window's balance delta owns the
runtime cost comparison.
The final benchmark runs overlap each other and the evolution fixture. There is one sample per arm. Host times are retained as diagnostics; identical execution and simulated-latency metrics do not establish equivalent host performance or mainnet latency. Canonical source closures, actual artifacts and the traced finished execution windows identify the measured cases.
Rejected broader SDK changes
The initial c9e963a variant changed ordinary Hylix reads through a shared
generic callback helper and changed contains_key to key-only lookup. RRts
completed instructions rose 0.1786%, stable capacity rose 1,638,400 bytes and
root p95 grew 600ms, despite fewer drain rounds. Sampled ordinary-read callback
bodies had eleven additional static Wasm instructions. This supports investigating
the helper, but does not isolate the whole-run cause from changed scheduling.
The b1b3216 variant restored ordinary get/edit source and retained a dedicated
key-only contains_key path. Instructions fell 0.0167%, but stable capacity grew
7,274,496 bytes, root p95 grew 1,200ms and workflow p95 grew 600ms. It also failed
the gate. Its changed instruction costs altered batching and workflow scheduling;
a lower total alone was insufficient.
The final scope provides contains_by as the comparison-based counterpart to
get_by, selects it inside Ashroot, and preserves all existing SDK lookup paths.
There is no fast-mode flag, application edit or benchmark-work reduction. Both
rejected variants retain their complete raw results and independent analyses.
Their Nyxus runs had exact IC parity; initial Nyxus host times rose 7.36% primary
and 7.26% process under concurrent build load. These are retained diagnostics.
Failures and evidence limits
Preserved attempts include two test-authoring compile errors (a missing required
Clone derive and an old private helper invocation), a declaration check started
while the shared count method and migration sink were still being integrated,
an offline build missing
cached trybuild, the first normal launch with a missing output parent, and the
first relocated RRT launch failing POST /instances with ECONNRESET before any
workload result. The fresh RRT retry uses a short owned session path and passes;
a Unix socket path limit is a suspected cause, not a proven diagnosis. No failed
sample is silently included in matched totals. The analysis script's initial
assumption that the normal fixture had no expected traps was corrected; all
three expected rollback cases remain required.
The research and Minima collection indexes pass. Scoped checks cover 103 local links in ten factory guides/reports and eighteen links in two SDK guides. The repository-wide documentation check reports the same sixteen existing missing crypto benchmark artifact links; it reports no new link error from this round.
The evidence package preserves source closures, exact artifacts, manifests, raw traces, native logs, analysis programs, failure output and hash inventories. No deployment or external application upgrade was made.