Home | Specification | Test vectors | Implementations | Decisions | Participate | Source


KVSIG WORKING DRAFT

Content-Derived Conversation Identifiers for LLM Chat APIs (kvsig/1)

Draft 0.1, 22 November 2026

This version:
https://kvsig.org/spec/draft-0.1/
Latest version:
https://kvsig.org/spec/
Source:
https://github.com/Podwarden/kvsig (SPEC.md)
Editors:
To be announced (PodWarden)

Copyright © 2026 the kvsig authors. This text is licensed under Creative Commons Attribution 4.0. Code and test vectors are licensed under the Apache License 2.0.


Abstract

This document specifies stable identifiers for a chat conversation and its prefixes, derived from a stateless request with no cooperation from the client. The same request content produces the same identifiers whichever API dialect carried it, in every component that holds the same deployment key, and the identifiers reveal no content to anyone without that key.

Status of this document

This section describes the status of this document at the time of its publication.

This is draft 0.1 of kvsig/1. The rules are not yet complete as prose, but the identifiers they produce are fixed: see section 12. Until each section is written, the normative rules are design decisions 0001 to 0006 and the test vectors in vectors/v1. Where the two disagree, the vectors win and the disagreement is a defect in the text.

Comments are invited from anyone, through the issue tracker; a mailing list will be announced on kvsig.org. Normative changes are open for comment for 14 days.

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when, and only when, they appear in all capitals.

Table of contents

  1. Status, scope and goals
  2. Terminology
  3. Canonical data model
  4. Dialect mappings
  5. Canonical encoding
  6. Loose profile loose/1
  7. Identifier derivation
  8. Keys, epochs and rotation
  9. Conformance levels
  10. Privacy considerations
  11. Security considerations
  12. Versioning and compatibility
  13. Test vectors
  14. Registries
  15. Prior art and acknowledgements

Annexes (informative): A. OpenTelemetry mapping · B. Reference pseudo-code · C. Key file format · D. Lineage edge vocabulary


1. Status, scope and goals

Goals. Stable identifiers for a conversation and its prefixes, derived from a stateless request with no client cooperation; the same identifiers across API dialects and across components that share a deployment key; no content leaked to holders of identifiers.

Non-goals. Token-level KV block hashing; identity across deployments; stateful APIs.

2–11. In preparation

These sections are filled in one pull request at a time, and each open question becomes a test vector. Until then the rules are in the decisions:

Decision Subject Status
0001Canonical encoding: restricted deterministic CBORAccepted, 20 November 2026
0002Draft canonical rulesProposed
0003Dialect mappingsProposed
0004Test vectorsProposed
0005The developer role in the loose formProposed
0006Component identifiersProposed

12. Versioning and compatibility

There are three version numbers, and they move independently.

Name Example What it versions
Spec labelkvsig/1Canonical form, canonical bytes, identifier derivation. It is hashed into every identifier.
Loose profileloose/1The loose table. Its name is hashed into every loose identifier.
Draft and librarydraft 0.1, 0.1.0The text, the vector set revision and an implementation.

12.1 What is stable. For the spec label kvsig/1 and the loose profile loose/1, the canonical bytes and every identifier given by the 232 vectors of vectors/v1 are fixed.

  1. No release changes the canonical bytes or the identifiers of any input under an existing spec label and loose profile. Such a change is published under a new label or profile, with its own vector set.
  2. The expected values of an existing vector never change. New vectors may be added only when they pin what the current rules already give.
  3. A reference library that disagrees with a vector has a defect, and the fix is a patch release.

12.2 What is not stable yet. The experimental profile loose/2; dialects, part types and request fields that no vector covers.

References

[RFC2119]
S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. BCP 14, RFC 2119, March 1997.
[RFC8174]
B. Leiba. Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words. BCP 14, RFC 8174, May 2017.
[RFC8949]
C. Bormann, P. Hoffman. Concise Binary Object Representation (CBOR). STD 94, RFC 8949, December 2020.
[RFC2104]
H. Krawczyk, M. Bellare, R. Canetti. HMAC: Keyed-Hashing for Message Authentication. RFC 2104, February 1997.

kvsig.org  ·  Editor: to be announced. Contact: the issue tracker.
$Id: SPEC.md, draft 0.1, 2026-11-22 $