Explicit standalone Wire payload schemas
This host-only feature follows composer commit
67bf532d890a5294b0589cf561da10588919284c on the
showtime/http-certification branch. An IC HTTP response body can carry a binary
Wire value even though the gateway's fixed external request/response envelope
uses Candid. Previously the native descriptor discovered schemas only through
constructors and typed query/update methods. Keeping an obsolete endpoint, or
adding a fake query, only to make an HTTP payload schema visible would be the
wrong application interface.
interface::PayloadType explicitly registers a package-scoped named schema in
the native descriptor inventory. Collection runs after existing methods and the
constructor, so adding a standalone payload does not renumber their existing
reflected type definitions. The named alias uses the ordinary types map and
existing client validator/generator. Duplicate export names, generated-name
conflicts, modified/deleted established definitions and invalid names/schemas
fail descriptor generation. No new canister method or Wasm registry is added;
the interface module and application registration are host-only.
The focused SDK library gate passed 14 native tests, including four new cases
covering standalone export, exact-package filtering, coexistence with a method
and constructor, duplicate/conflicting definitions, and invalid names/references.
A separate external application using the actual WireType derive registered
PublicSnapshot and exported a descriptor containing its named alias and record
schema, with zero methods and no constructor. It compiled and ran using the
pinned nightly-2026-10-15 compiler, locked offline metadata and an isolated
native target. New build processes used nonexclusive CPUs 34–37.
An initial unit fixture incorrectly invoked a derive with a hardcoded external
CDK crate path from inside that same SDK crate. The fixture was corrected to
use manual test reflection; the separate external derive probe validates the
real application usage. No derive behavior was changed to accommodate the test.
Raw logs and probe inputs remain under
/tmp/showtime-certified-http-cdk-20261024/.
These checks establish native descriptor behavior. They do not establish HTTP certificate validity, canister instruction costs, a browser transport, a Wasm binary comparison or whole-application throughput. No live deployment or other SDK checkout was modified. See the Wire guide for the registration contract.