W1 binding for autonomous AI agents · Chapter 3 of 10

Representation and cryptographic binding

All W1 JSON is the UTF-8 encoding of the JSON Canonicalization Scheme restricted to printable ASCII strings and object names, booleans, null, arrays, and unsigned integers. Timestamps range from 0 to 253402300799. Other numeric fields range from 0 to 2147483647. Receivers MUST reject duplicate members, unknown members, noncanonical encoding, and numbers outside that range. Comparing the received bytes to a canonical reserialization detects noncanonical encodings. Use lexicographic ASCII order for object keys. Arrays retain their specified order. A token identifier is 1 to 64 lower-case ASCII letters, digits, or hyphens, beginning with a letter or digit. A hash is 64 lower-case hex digits giving SHA-256 of the specified bytes. Times are whole seconds since 1970-01-01 UTC. Validity intervals include their start and exclude their end. {{!RFC8785}}

All signed control objects use compact JSON Web Signature (JWS). The protected header has exactly alg, kid, and typ. Their values are Ed25519, a configured key identifier, and the W1 type label http6-w1+jws. Both protected header and payload use the preceding canonical encoding. The signature input is the ASCII base64url encoding of the header, a period, and the ASCII base64url encoding of the payload. Use ordinary Ed25519 over those bytes. Base64url segments omit padding. Verify the protected algorithm, type, issuer role, and all 64 signature octets. The public fixture keys are OKP JSON Web Keys with curve Ed25519. {{!RFC7515}} {{!RFC8032}} {{!RFC8037}} {{!RFC9864}}

A hash of a signed object covers its complete compact ASCII string, including the signature. A hash of operation intent or grant terms covers the canonical JSON object alone. HTTP Content-Digest uses standard padded Base64 over the SHA-256 digest of the transmitted body octets. These three inputs have distinct purposes. The public corpus provides the exact bytes and intermediate values.

A verifier MUST limit an HTTP body to 65536 octets, an HTTP header section to 16384 octets, a compact object to 8192 characters, and an authority chain to nine objects including the root. A permission set contains one to eight unique identifiers in ascending ASCII order. A receiver authenticates and validates the relevant claims before allowing them to consume a record position or spend units. Failure to resolve a required trusted service or establish fresh authority holds an operation that would otherwise require new authority.