SDK ownership and test orchestration — 2026-11-10
Crypto, compression, documentation, research and ordinary tests now follow one
repository layout. The work began at newstack
07e0280872405423a814f63c48b1577719c7f8d9; the SDK remains ordinary tracked
source in the harness repository, without submodules.
Ownership
- The 15 crypto packages live under
cdk-rsx/ver1/crates/crypto/<family>/. LZ4 lives undercdk-rsx/ver1/crates/compression/lz4/. Package and Rust API names are unchanged; all 54 SDK packages share the CDK workspace and lockfile. - Cargo vendor packages live under the corresponding group’s
vendor/, outside individual workspace-member directories. Nested vendor dependencies were incorrectly joining the SDK workspace despite exclusions; this matches the documented Cargo membership issue. BLAKE3’s reference implementation now stays with its upstream test support. - Shared benchmark workspaces and tools live under
benches/, includingbenches/cryptoandbenches/compression. - SDK documentation is the entry point. Crate READMEs and guides stay with their packages, with repository/readme metadata. Nine missing crate READMEs were added. Explicit package file lists include linked upstream notices and licenses.
- Historical crypto research, verification reviews, completed qualification
checkpoints and superseded proposals live under root
research/. Current formal specifications, proof harnesses, frontend fixtures and runners remain underverification/. - Seven crate-specific authoring checks moved into their owners. Shared fuzz
source lives under
tests/fuzz/; all 134 ordinary verification-tool unit modules live undertests/verification/, with an import-path wrapper. The modules’ bodies and all 568 formal proof Rust sources are unchanged. Runner source inventories retain the relocated unit inputs.
All 439 algorithm Rust/C/header files were compared with the original paths. 432 are byte-identical; the seven differences are test-only fixture/vendor include paths. All 195 relocated vendor Rust files are byte-identical. Historical non-Markdown crypto research/reproduction source was preserved byte-for-byte.
Seventy-nine previously tracked raw crypto build/results files were removed
from the index, retaining their original Git history and local ignored copies.
Old ignored benchmark/algorithm caches were preserved under tmp/retired-*-local-20261110.
The four registered worktrees under the old ignored fuzz/tmp/ remain intact.
No other process’s server, live state or lease was removed.
Test harness and CI
python3 tools/test.py selects packages, suites, task globs, affected reverse
dependencies or stable shards. --jobs, --build-jobs and --test-threads
control separate concurrency levels. Workers have private Cargo homes, targets
and temporary paths; optional warm caches use an exclusive lease and content
freshness. Fresh reports remain separate from reusable caches.
JSON reports record source identities before/after the run, commands, logs, durations, exit codes, failure tails and explicit blocked/timeout/cancelled outcomes. Running tasks expose their log paths. Missing prerequisites and empty selections do not count as passes. Nine qualification-admission tests require a clean committed checkout. Node package prerequisites follow the selected task. The fuzz task checks Cargo/binary target registration before running every model.
The PR workflow installs the pinned local compiler, prepares locked dependencies,
runs static/tooling/host checks and four native/authoring shards, then uploads
reports and summaries. actionlint passes. Compiler setup was tested against an
empty local Rustup home; environment tests use their own fresh cache fixtures.
Validation and exact sources
| Checked source | Scope | Result |
|---|---|---|
92ac65e00fe4b85a1f35b7974ded19958c2f3387 |
PR gate, benchmark native packages, verification tooling and fuzz | 304 tasks passed; clean, unchanged source |
08c7e1bf6c6f50273a1a8a69a7a176d763507594 |
Final test/docs ownership, host/tooling, verification and relocated fuzz | 214 tasks passed; clean, unchanged source |
b57e927556b5123d5a3875aa5616a2276f0c7c76 |
Final CI static/tooling/host gate | 79 tasks passed; clean, unchanged source |
The final SDK subtree for the last two runs is
cd7b522b0bd0810ef3cb500a18cd631ba29167fa. Subsequent changes add the shared
fuzz registration guard and these findings; they do not change SDK implementation.
The registration check matched all 31 compiled targets and rejected injected
missing/extra entries. Every target passed authored seeds plus 64 generated cases
with seed 42. The final runner has 29 focused regression tests, including actual
parallel barriers, failure propagation, interruption, lease contention, warm-cache
reuse, scoped prerequisites and live report inspection.
Two actual focused LZ4 runs reused the same cache identity, retained clean source, passed their tests and completed Cargo’s test preparation in 0.15s and 0.10s. Those are build-cache checks, not algorithm performance measurements.
Locked metadata/import checks passed across the active workspaces. Cargo package file-list checks covered all 16 grouped algorithm packages, five relocated primary guides, and the three imported packages’ license/provenance files. Documentation, research catalogs, layout boundaries, whitespace and workflow syntax passed.
Fresh canonical wasm64 builds also passed compatibility, preparation, inspection and Wire validation, with unchanged source during each build:
Their manifests record base commit 07e0280872405423a814f63c48b1577719c7f8d9
plus the staged relocation. The SDK source was subsequently committed in
64d59f5eaae4394a00dbdb12c5e59bb83d6d911a, subtree
f8fde3cedf4346b4c808295380582fc133ca8cf4. Later package-documentation and
test-fixture repairs explain the different final SDK subtree above. The exact
build manifest SHA-256 values are 0ce29baae704b37763a6287e235ed08bf14150b1de3b62c8c9de181436453e57
(compression) and 0aefd067da09ac1b86dcc3543fd4d9bdf4a028045fb20191186d4be8066acff5
(crypto); old checkout receipts were not reused as fresh build evidence.
| Prepared module | Bytes | SHA-256 |
|---|---|---|
| Compression benchmark | 328699 | 9e122c281fa08468a33ee4e3f44470309e566f748569f6583857b9f25a4a84e3 |
| Crypto benchmark | 3796417 | c8901e3ca4ad1c09dd8b28403dc2b033fcd2f1dc0f7f4407555fa193651b3fae |
Crypto used the existing Clang 21.1.8 installation and its explicit builtin resource directory through the benchmark build helper. The initial generic builder invocation correctly failed because clang was absent from PATH; a fresh helper-driven output retained C-tool provenance. Neither build is an assertion of old-binary KEEP compatibility or unchanged measured performance.
Failures resolved and limits
The first hosted CI run found two review-directory links hidden locally by empty folders left after relocation. Those links now point into root research. The documentation checker consults authored Git files (including new unignored source) so empty leftovers and ignored outputs cannot satisfy links. Seven link-checker regression tests pass, including fresh-directory and ignored-output controls. The affected 21-task static/tooling gate passed after the correction.
The full native gate exposed stale benchmark encoder allocation allowances. Serde’s byte-vector encoding visits references and needs a larger allowance than decoding. Exact 500-record allowances are now 5,788,240 bytes for bulk ECDSA, 10,124,000 for fresh ECDSA and 7,060,000 for Schnorr. Tests retain every record and existing byte/node/depth bounds, reject one-allocation-byte-short encoders, and preserve Schnorr’s independent exact decoder boundary. The SDK Wire implementation and algorithm bodies did not change.
An initial overly broad optimized test profile exposed Candid’s lifecycle name expectation. SDK workspace members retain ordinary test optimization; explicit algorithm/Ashroot package settings retain optimized arithmetic. No Candid runtime patch was introduced. The relocated source-policy freshness fixture now copies complete workspace package metadata and the actual compatibility resolver, with an additional resolver-change case. Its stale literal/path assumptions were replaced without relaxing the policy expectations.
Actual product proofs and the two opt-in local IC integration tasks were not rerun. Heavy16 performance was not remeasured. These results establish the stated source/build/test scopes and preserve historical qualification identities.