Second authoring simplification qualification

3 November 2026. Qualified newstack a249c6eac79483b1635344745608dc0fa58ce4e5, SDK 0cad0e28baf8383def0a7ab515fd6b67a83bba39. The review records the intended changes and rejected complexity. The current authoring guide is the API reference. Source identities and exact commands are retained in the evidence. This is a fresh generation; previous app source, archives and qualified binaries remain unchanged.

What became smaller

The added point-read methods forward the existing table read:

let tally = db.with_row::<Decisions, _>(access, id, |row| row.copied())?;
let voted = db.contains_key::<Ballots>(access, key)?;

They retain TableIn<D>, the same database gate, backend context, single primary lookup and synchronous borrowed callback. They create no bound wrapper object, implicit clone, result array, registry or schema scan. contains_key still uses the existing row lookup; this is not a new existence-only backend optimization. Index lookup followed by row extraction stays fused inside one ordinary read callback when that avoids opening a second frame.

#[cdk_rsx::dto] replaces the repeated Serialize/Deserialize/WireType and SDK Serde-path declarations. It preserves existing field options and explicit crate paths, with no options or new codec. Four SDK equivalence tests compare exact encoded bytes, cross-decoding and complete Wire registries for named fields, renames/bytes, enums, generics, tuples and units. Another test rejects options, unsupported items and unions. Storage contracts remain engine-specific.

The new DAO reuses the existing service macro instead of hand-writing its View/Service glue, shares its transient proposal-to-DTO mapping, and collects bounded iterators directly. It keeps index lookup+row extraction in one frame, exact visit caps, business preflight and explicit ownership constructors. Its native test frame helpers now delegate to generated read/with, avoiding loss of domain errors behind generic Conversion.

This removes another 44 Rust lines: 1,552 → 1,508, still 11 files and a maximum line length of 100. Compared with the original study, it is 17 → 11 files and 1,774 → 1,508 lines. All seven business test bodies remain unchanged. Exact frozen rules, row fields, ownership transfers, provider layout and endpoint behavior are preserved.

Developer reference and runnable example

The authoring guide now provides compact return-shape and owning-constructor references. It explains that atomic converts escaped errors into traps; direct writes and IC whole-execution rollback supply the behavior, with no overlay or local savepoint. Native callers still discard or restore failed Store/providers.

The tracked treasury example demonstrates Hylix-only setup, managed accounts/receipts plus private raw counters, ordinary business preflight and coordinated writes. It runs without the Minima feature. It is a native example, not an additional IC rollback or upgrade fixture. The engine guide shows direct Hylix format/open; no universal provider registry, combined Hylix/atomic wrapper, positional owning-record constructor or additional schema language was added.

Validation

Gate Result
All-feature native suite 83 passed
Default-feature native suite 66 passed
New direct-read tests Owning Nyxus String, owning Hylix Blob, Minima fixed row passed
SDK DTO equivalence / rejection tests 4 / 1 passed
Public authoring positive/negative clients 23 passed, including direct borrowed-row escape rejection
Versioned policy mutation/control cases 5 passed; inventoried inputs unchanged
Treasury runnable example Transfer, receipt/raw counters and non-mutating refusal passed
Normal three-arm canonical images 3 passed
Normal actual IC checks / captured calls 18 / 66 passed
DAO native V1/V2 7 / 7 passed
DAO canonical images / actual IC lifecycle checks 3 / 8 passed

Direct-read tests use only public generic membership bounds, consume a non-Copy FnOnce capture, call the missing-row callback once, read from an existing write frame, and read owning Hylix content repeatedly without adopting/retiring a decoded owner. The authoring checker verifies that borrowed rows still cannot escape the new convenience method.

The policy checker changes the target converter and a captured external frozen helper while holding file lengths/old timestamps fixed. Real native migrations and target catalogs change together; source/physical contracts remain unchanged. Comment/test-only changes and restored inputs preserve the baseline catalog.

All three storage arms match independent complete primary/index oracles and stable-byte checks through refusals, replacements, cascades, work limits, update traps and populated KEEP. Optional migration/admission/restore companions were not configured for this normal three-image screen. DAO separately qualifies populated V1/V2 KEEP, owning Blob migration/obsolete retirement, post-upgrade voting and exactly-once treasury/receipt behavior, update traps and failed-upgrade rollback. This round does not repeat the earlier large-DTS population screen.

The new DAO's three Wire JSON files are byte-identical to their previous clean counterparts. This is public-protocol equality, not admission of an earlier SDK binary. Every current image was freshly built and verified on the current pin. The original clean DAO audit checks every one of its 14,117 files and 1,550,295,992 bytes unchanged.

The DAO's first host attempt stopped before verification/session creation because its new results parent was absent. Its failure log is preserved. Creating the owned output directory and running fresh lifecycle-02 with unchanged package assets passed. One exact install-code quota refusal was retried after normal scheduler rounds without changing limits or data. There were no product correctness failures; expected trap tests remain distinct from failed attempts.

Size and matched ordinary work

The normal control compares the same source closure, Wire, compiler/profile, 32 rows per table and work: 22 captured updates and 389 completed row mutations per arm, including two seeds. This differs from the earlier 188-call stream; the percentages must not be compared as repeated samples of one workload.

Current native versus handwritten native Ashroot Manual
Full instructions, including page charges 13,726,750 13,470,464
Instructions excluding two seed calls 11,341,455 11,062,757
Prepared Wasm bytes 624,764 575,872
Executable Code bytes 370,728 360,326
Installed gzip bytes 132,138 124,416
Final Wasm capacity bytes 16,842,752 16,842,752

Full instructions differ by +1.903%; excluding seeds, +2.519%. Included page charges account for 240,000 of the 256,286-instruction full difference. The least favorable row-bound refusal (+19.669%) and replacement cohorts remain in the per-operation CSV. Final accounted memory differs by 7,723 bytes, explained by compressed binary and one custom-section byte; equal capacity is not a live or peak allocation claim. Local traced host windows total 503.083 versus 480.628 ms; this less-favorable observation is retained without a latency-distribution claim. All 66 raw traces have complete verified instruction/memory counters and the exact pinned server identity. Source review is separate from the measured binary.

Across source generations, native/manual prepared and Code section sizes equal the previous authoring screen; mixed grows by eight Code/prepared bytes. Gzip changes with policy/name bytes. The actual simplified DAO V1 grows by 4,248 prepared bytes, 1,392 Code bytes (+0.273%) and 554 gzip bytes (+0.290%); V2 grows by 1,299 Code bytes (+0.212%) and 590 gzip bytes (+0.261%). Package, caller, policy and SDK identities changed, so these are measured observations rather than isolated costs of one helper. Less source does not promise less machine code.

Boundaries

No SDK engine, allocator, method-entry runtime or RRT workload path was changed; this screen makes no Heavy16/RRT performance claim. There is no new external deployment, cross-SDK admission, compliance, maximum-population DAO, live/peak memory or latency-distribution qualification. Source closure/purity and domain business invariants remain explicit author obligations. The changes simplify how existing capabilities are written and discovered.

Current scoped guides/research links pass. The repository-wide docs check still reports the same 16 missing crypto benchmark artifact links; its exact output is preserved. Historical source snapshots, archives and receipts are unchanged.