[Cbor] List of all serialization variation (was Re: Working Group Last Call on Serialization draft)

Laurence Lundblade <lgl@island-resort.com> Thu, 03 September 2026 15:57 UTC

Return-Path: <lgl@island-resort.com>
X-Original-To: cbor@mail2.ietf.org
Delivered-To: cbor@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id D21AD134DF5B4 for <cbor@mail2.ietf.org>; Thu, 3 Sep 2026 08:57:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1788451078; bh=OocUqJEeGqPi/YLjAKOGd82PehnFnRKuwFLNBJxxh+8=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=hjA7gxoWwIRWv9XcpBDK3/M3gAAsyHgvKrDCHbbtQ0Resl9/4J4iRCz7YAozfA62n 5bc/iVdIcwonts1AVUjg6APPz8x+jxvtBOEAQlp3OjJqJJt/pdow1/RhuesvU+i8UY 2IJPRMFLAAAyM1Yoc/zOamCBQfNEWsPPmHDJeFCA=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.695
X-Spam-Level:
X-Spam-Status: No, score=-1.695 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=island-resort.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L48ES5RdIt6b for <cbor@mail2.ietf.org>; Thu, 3 Sep 2026 08:57:58 -0700 (PDT)
Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 18BB8134DF5AF for <cbor@ietf.org>; Thu, 3 Sep 2026 08:57:57 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1788451074; cv=none; d=zohomail.com; s=zohoarc; b=budGBmi8jiED7reyL1+SltCbRlyno1kGmM0iVftXj2y9NFHutWarmCZT2wvRBqpJ99nPs5AIOWP0Fud8WX2IJ5VOMVcPqvqgE1KQ3QSyi0KPQPctST50QvS1TegumVJxjeENyqSF1ihZCysqdZROASqeKq6ST8MkIn+87mP5Ax0=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788451074; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=Zo/+67Z7pa/ysU/55eeaThZLc7UufqpGr3yPuSw0P0U=; b=A+tac23zkKwK9kuHWaaQVtbVs9EAUDBbPVSR0qhWwR00s9zmw62Yy1OO5Ou6JpgKdp4O3MrcRS81esFQI3sl85So2zdGDRWto8JDk8A5gOFJy/uJ1MnZeiFd0H3nSXMnxYIrWmlvH2NSkIWcBTddryEn6/7CvPBnRY1QAaC/vqk=
ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=island-resort.com; spf=pass smtp.mailfrom=lgl@island-resort.com; dmarc=pass header.from=<lgl@island-resort.com>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788451074; s=island; d=island-resort.com; i=lgl@island-resort.com; h=From:From:Message-Id:Message-Id:Content-Type:Mime-Version:Subject:Subject:Date:Date:In-Reply-To:Cc:Cc:To:To:Reply-To; bh=Zo/+67Z7pa/ysU/55eeaThZLc7UufqpGr3yPuSw0P0U=; b=UaH8XQ5BCCTGQyIgMIqSGoEKxNVZi8nixACrj1b+Bx43CoXQ8xoVbotGmmhxy7QG LUqJuUse8RuAGqVObf8VQlVigZc04epwh5NCMlaxH9umDJ7PL14jPo1EPyMxb+9a76V 07jNtYzYhKKi2A/T1ahW8NVXVrMYNJtIm72JKGTQ=
Received: by mx.zohomail.com with SMTPS id 1788451072355376.96784425592193; Thu, 3 Sep 2026 08:57:52 -0700 (PDT)
From: Laurence Lundblade <lgl@island-resort.com>
Message-Id: <CBA90F61-F1B5-45EB-97F1-9476AB938EE3@island-resort.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_1BFC4FE7-E7FF-4C2E-836B-8A6247DA0B5F"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.8\))
Date: Thu, 03 Sep 2026 08:57:40 -0700
In-Reply-To: <876653A4-6425-45E1-A77A-F0A6A1315BDD@cursive.net>
To: Joe Hildebrand <hildjj@cursive.net>
References: <CALaySJJa=QjUM5B6d8boiFb8qyRwf6LO32WVVWBGuCWtSmEFCQ@mail.gmail.com> <876653A4-6425-45E1-A77A-F0A6A1315BDD@cursive.net>
X-Mailer: Apple Mail (2.3826.700.81.1.8)
X-ZohoMailClient: External
Message-ID-Hash: ZQOZC2LY3HVIO7SZAN277HC4WBNHNMT2
X-Message-ID-Hash: ZQOZC2LY3HVIO7SZAN277HC4WBNHNMT2
X-MailFrom: lgl@island-resort.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Barry Leiba <barryleiba@gmail.com>, CBOR Working Group <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Cbor] List of all serialization variation (was Re: Working Group Last Call on Serialization draft)
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/WMqgqrvZB5PGIUoGoHP9m9xofcg>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

Appreciate the thorough review!

> On Aug 18, 2026, at 12:05 PM, Joe Hildebrand <hildjj@cursive.net> wrote:
> 
> s2.1.1: I suggest "it may mandate deterministic serialization for all implementations in order to eliminate all serialization variability" -> "it may mandate deterministic serialization for all implementations in order to minimize serialization variability", since there are other sources of serialization variability.

I can’t think of any other sources of serialization variability. Seems important to be sure we got themm all. They are listed in the description of [General Serialization]. Map sort ordering is missing, but I will add it [PR-unordered]. Am I missing something?

 - map sorting
 - def/indef lengths
 - CBOR argument length
 - float length


There is variability at the data model level that needs to be addressed for full determinism of a protocol, but that is not serialization variation.

LL


[General Serialization]: https://www.ietf.org/archive/id/draft-ietf-cbor-serialization-08.html#name-general-serialization
[PR-unordered: https://github.com/cbor-wg/draft-ietf-cbor-serialization/pull/84/changes