Compose application and Rechain certification

This change starts from f47e21680db6b5d2216e5aa743fb7bc673ea90a2 in the showtime/http-certification worktree. It fixes a concrete composition gap: Rechain previously wrote its own root at startup, immediate publication and scheduled publication. An HTTP handler independently setting its certification root would replace Rechain's root, and the next chain publication would replace the HTTP root. Both families of witnesses therefore need the same coordinator.

Change

Publisher::set_application_root registers the digest of a complete application subtree. HTTP certification supplies a subtree already labeled http_expr. The publisher composes that branch before its existing rechain branch in one fork. digest, returned publication digests and chain proof digests all use the composed root. Chain witnesses include the pruned application sibling; application_witness checks the supplied application witness digest before adding the current pruned chain sibling. A wrong or unregistered application witness is rejected.

The IC controller provides corresponding public methods and remains the only certified_data_set writer. Application updates publish the combined root immediately; they preserve Rechain's independent deferred-tip deadline. The registration is transient, as is the existing publisher, and the application must reconstruct and re-register its branch after Rechain startup on restore. Canisters with no application subtree continue to certify their chain alone. This is feature absence, not a retained obsolete protocol decoder.

Validation and limits

The focused Rechain library gate passed 24 native tests, including five new checks covering both witness families, selected/all-chain proofs, alternating application and immediate/deferred chain publication, invalid witnesses, unrecorded chains and reconstruction from saved tips. The pinned nightly-2026-10-15 compiler (1.101.0-nightly, 7df81381d) and the locked offline RRT workspace were used; new build processes were restricted to CPUs 34–37, which were not exclusive hardware. The test target was isolated.

Initial preflight attempts could not find the worktree-local compiler or the complete dependency index. They changed no application semantics. The successful gate reused the original qualified compiler and complete registry cache by physical path. Raw attempt logs remain outside this checkout under /tmp/showtime-certified-http-cdk-20261024/.

These are native implementation checks. They do not qualify an actual IC certificate, BLS verification, an HTTP gateway/cache, upgrade image, instruction cost, throughput or freshness SLO. The consuming application must additionally exercise both Rechain and HTTP witnesses against the same real data certificate. No running canisters, retained owners or other SDK worktrees were modified.

A separate compile-only HTTP API sketch used the official ic-http-certification = 3.2.0 to match Rechain's exact ic-certification version. The gateway's external envelope must use standard Candid, while its snapshot body can remain binary ICWire. The SDK's private Candid codec and an upstream crate's Candid derive implement different traits; consuming code must use suitable external-boundary DTOs rather than mix the trait implementations. See the canonical composition contract.