SDK composition cleanup
Date: 2026-10-27. SDK candidate:
931f8c8087fa15cfeab56eb2f3979f7010e3f06d; harness candidate:
4c91209e5d87503079b728e98dfcabe0a194378e. This experiment implements the
requested SDK cleanup and generalization while reducing unrelated coupling.
The matched Heavy16 report
owns performance results, artifact identities and measurement limits. The
independent reviews cover policy composition and IC startup/rollback
source reasoning.
PocketIC's JavaScript transport moved from the SDK to
tests/pocketic/wire-client.mjs in the harness, with active imports and receipt
paths updated. Wire codecs and client generation remain product tools. The
standalone memory-ABI probe and its test features now belong to the harness;
historical report renderers moved unchanged into the research archive. These
boundaries let the SDK build independently without carrying benchmark tooling
or a test-host transport.
Required per-carrier NyxusData::__NYXUS_POLICY and Codec::__CODEC_POLICY
recipes replace blanket package scans and the root-wide Collections/Wire policy.
Derives capture the selected declaration. Explicit source recipes hash tracked
production tokens and named helpers, excluding comments, documentation and
test-only items. A shared implementation family can deliberately share one
complete recipe. Custom Ord/Eq/Hash and Drop bodies, active configuration,
external helpers, saved Wire schemas and custom serializers still require
explicit frozen-owner sources and dependencies; this is not an inference of
arbitrary semantic equivalence.
The physical graph and its digest stay unchanged. A separate immutable
interpretation slice contributes only at catalog admission. Native policies
come from the existing physical type graph. Store's explicit unsafe
CodecCarrier proof on Record<T> seeds a separate encoded-payload walk,
including collection key/value types hidden behind stable descriptors. An
unused Codec implementation on native data contributes no codec policy.
Minima's opaque carriers retain their concrete Fixed contracts. Sealed metadata
bridges return constants through unread raw receivers; they do not expose
application callbacks. Ordinary physical binding gains no interpretation walk.
There is no runtime policy registry or source discovery, and saved retry bytes,
operation identities and uncertainty rules keep their existing behavior.
A small no_std graph crate supplies a common synchronous adjacency capability
and an allocation-free bounded neighbor merge. Native shared references and
Minima's borrowed adapter use it while retaining backend-owned storage, errors
and cursor contracts. Cross-backend result tests exercise the shared operation.
Optional sketch geometry controls were rejected because there was no consumer
need; the cleanup adds no product feature flags.
The root's existing Wire descriptor now exports a native-only stable symbol.
The canonical builder links that exact Rust signature, removing its assumption
that an application exposes a public module named root. Constructor
request_limits uses the same compile-time-checked, target-independent Limits
expression for native metadata and Wasm admission. The private-module fixture
checks those limits and rejects a valid oversized integer tuple before argument
copying/decoding.
Qualification found that the pinned compiler omitted reflection hooks when
blanket implementations repeated an already implied T: 'static bound.
Removing the redundant bounds restored metadata selection without weakening
the data contract. Direct TypeInfo regressions now check the selected hooks,
native-policy sensitivity, unused-Codec isolation, erased Record/Map codec
sensitivity and finite recursive Rc construction. Earlier failed diagnostics
remain evidence. Other preserved failures include an undersized constructor
allocation budget, corrected from 128 to 256, and a duplicate root export from
a lifecycle test, corrected by moving that test into SDK integration tests.
Native validation passes: SDK 978 tests with 10 existing ignored tests, harness fixtures 15, RRT 275 and RRts 264. Compiled source-policy mutation checks cover helper/comparator/drop freshness and excluded inputs. Descriptor and explicit root lifecycle regressions also pass. Actual root-authoring qualification passes all five checks, including declared conversion, rejected admission and rollback after a callback saves then fails. Actual RRT and RRts runs each pass their five populated KEEP, pending-work rejection, drain and resumed-progress checks. These matching-artifact lifecycle results do not establish an upgrade from the old SDK control to this candidate. Benchmark conclusions belong to the linked report.
The boundary review found graph fixtures still duplicating the removed package
hash and a misindexed Minima diagnostic contract. Harness follow-up 5a32b65c
removes those Python/JavaScript oracles and the --policy option, while retaining
exact source/output verification and actual wrong-contract admission checks.
The corrected diagnostic mapping has a native regression test. A bounded actual
Nyxus run passes three shapes, twelve operation cases and fifteen lifecycle
checks; Minima passes all four layouts, fifty-five operation cases and thirty-three
lifecycle checks, including pending BFS KEEP. These are functional checks with
one measured sample per operation, separate from the frozen Heavy16 comparison.