Home | Specification | Test vectors | Implementations | Decisions | Participate | Source
KVSIG WORKING DRAFT
SPEC.md)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.
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.
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.
loose/1Annexes (informative): A. OpenTelemetry mapping · B. Reference pseudo-code · C. Key file format · D. Lineage edge vocabulary
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.
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 |
|---|---|---|
| 0001 | Canonical encoding: restricted deterministic CBOR | Accepted, 20 November 2026 |
| 0002 | Draft canonical rules | Proposed |
| 0003 | Dialect mappings | Proposed |
| 0004 | Test vectors | Proposed |
| 0005 | The developer role in the loose form | Proposed |
| 0006 | Component identifiers | Proposed |
There are three version numbers, and they move independently.
| Name | Example | What it versions |
|---|---|---|
| Spec label | kvsig/1 | Canonical form, canonical bytes, identifier derivation. It is hashed into every identifier. |
| Loose profile | loose/1 | The loose table. Its name is hashed into every loose identifier. |
| Draft and library | draft 0.1, 0.1.0 | The 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.
12.2 What is not stable yet. The experimental profile loose/2; dialects, part types and request fields that no vector covers.