Rechain BLAKE3 transition: private native correctness evidence

On 26 October 2026, 138 native checks passed in the isolated Rechain lane:

Source under test Unit tests Compile-fail documentation tests
IC certification fork 63 0
RRT Rechain 27 3
RRts Rechain 22 3
HRRT Rechain 19 1
Total 131 7

These checks qualify the private source and native behavior recorded here. They preceded the Takt/Reactor merge, workspace integration and hash-facade wiring. No Wasm build, PocketIC run, IC correctness gate, instruction result, latency result or performance improvement is established by this packet. Other workspace crates remained at the lane's base source during these checks.

The immutable original qualification receipt records base f9892f331ff093f9cf934ec9d9491ce2c915e045, SDK 33f54b62b46a6693ff6e193a752e052eaa124884, compiler, commands, exact resolved locks and executable hashes. The final source was frozen as 13bdd7926f9306fb73a980b948d7277b32b1eb01 (certification backend) and a01e4292f0552eeb4925b16c91214c150bfe4335 (three Rechain ports). Source identities distinguish these private commits from later integration references. A cherry-pick or an old absolute path in a log does not qualify a fresh integrated build. The standalone SDK source and its dependency graph were not edited.

The source uses the pinned BLAKE3 1.8.7 implementation in crypto/algo/hash/vendor/blake3, with pure, zeroize and wasm32_simd enabled. Blocks use the public identifier blake3-parent-payload-v2. Their exact input is rc || u8(parent present) || optional parent[32] || canonical Wire payload. Streaming updates borrow the original fragments without an extra concatenation buffer. Each parent depends on the preceding digest, so the chain remains serial. No historical reader or previous-hash conversion is retained.

Replay fingerprints use unkeyed BLAKE3 with the explicit domain rechain:idempotency:blake3:v1, followed by a length-framed caller, memo presence and optional length-framed memo, optional creation and expiry times, and a length-framed selected identity. Lengths and present u64 values are big-endian; options use one-byte presence markers. Receipt time is excluded. The selected request bytes, replay window, duplicate response, admission and commit behavior are unchanged. Memory versions and migration code were not changed.

IC certification retains SHA-256. The vendored ic-certification 3.2.0 swaps its hashing backend to cdk-rsx-crypto-hash::Sha256, preserving the one-byte domain length, domain text, tree shapes, CBOR witnesses and protocol digests. The upstream crate archive SHA-256 is 754e3037360152de7e5f2bd0ccf51db8864b6a03c5a2b4ffc6a65286c0e2ffa7; its VCS pin is 37c1565e04ac0fdd449619e5e25f51b985d98c05. The 63 certification checks comprise 60 unchanged upstream tests and three backend tests, including independent padding-boundary digests. The fork, label, leaf and empty inputs retain their ic-hashtree-* domains. A BLAKE3 block hash stored in a leaf does not change the certificate's SHA-256 tree contract.

The oracle vectors retain 11 parent/payload vectors, a three-block linked chain, six caller/memo/number/identity vectors and 27 IC SHA-256 vectors already present in the frozen Rust tests. The original independent BLAKE3 oracle was @noble/hashes 1.8.0; its exact blake3.js source hash is pinned in the receipt. The original SHA-256 oracle was Python hashlib. The sizes cross BLAKE3's 64-byte blocks and 1024-byte chunks after both header sizes, and SHA-256 padding/block boundaries for IC leaf and label inputs.

The receipt is copied unchanged, including every earlier hash field. Its tested_source_files_sha256 inventory records the native test-time files; source_files_sha256 records the final frozen files. Every Rust source and crate manifest hash agrees between those inventories. Exactly three non-code files changed afterward: PROVENANCE.json was refreshed, UPSTREAM.md gained the patch-application instruction, and VENDOR-INTEGRATION.patch became a zero-context diff to preserve whitespace-clean patch data. Their old bytes are archived as base64 in test-time non-code artifacts. Their old and final hashes are both listed in source-identities.json. Upstream hashes inside the vendor provenance identify the published upstream inputs; they are separate from the modified integrated source hashes. None of these historical hashes is silently rewritten to match the final files.

The copy manifest covers all 14 byte-identical originals: the qualification and standalone certification receipt, four logs, four exact locks, compiler identity, two temporary root patches and the patch dry-run log. Initial offline certification dependency resolution lacked upstream rstest 0.23.0; the unchanged suite ran after registry dependencies were fetched. That initial failure is recorded in the original receipt. The workspace suites then ran offline. Temporary root manifests and locks were restored after proof capture. The private target was retired; no binaries, caches or build directories are included. Recorded executable hashes therefore identify prior outputs and do not imply those outputs are present in this packet. Scoped Git attributes keep these frozen bytes and treat the four raw logs and two original patches as data; their original blank context/terminal lines are preserved.

To verify the frozen copies, all packet checksums, receipt relationships and independent SHA-256 vectors without building, run:

python3 research/experiments/2026-10-26-rechain-hash-transition/verify.py \
  --git-repo /path/to/newstack
node research/experiments/2026-10-26-rechain-hash-transition/oracles/verify-blake3.cjs \
  /path/to/pinned/@noble/hashes/blake3.js

The optional --git-repo check reads the named frozen Git objects, not today's working tree. Omit it when those objects are unavailable. The BLAKE3 script requires the exact independently maintained oracle source hash and checks all 20 BLAKE3 vectors. Neither verifier builds Rust or calls the IC.

For a separate native reproduction, start from the recorded base with the recorded SDK pin, apply the exact source export with git apply --unidiff-zero, then apply native/root-manifests.patch. Install each saved native/<workspace>-Cargo.lock at <workspace>/Cargo.lock and the certification lock at rrt/vendor/ic-certification/Cargo.lock. Use the pinned environment, an exclusive private target, debug level zero and incremental compilation off. Run the four commands from the receipts with --locked; dependencies must be cached for offline execution. This reconstructs the earlier private source qualification, not the later integrated application. The root lockfile patch is retained as the original audit diff; the saved lockfiles provide the exact resolved inputs. Current documentation and research navigation are managed separately by the integration owner.