Download docs/stability.md from Kannaka/kute: direct link, hf CLI and curl.
- Browser
- Download file 15.4 kB
-
https://huggingface.co/Kannaka/kute/resolve/main/docs/stability.md
- Command line
-
hf download hf://Kannaka/kute/docs/stability.md
-
curl -L -o stability.md https://huggingface.co/Kannaka/kute/resolve/main/docs/stability.md
What may change, and what is held
KUTE is before 1.0. Nothing here is a promise of the kind a 1.0 makes. This page says, for each public surface, which of three classes it is in, so that someone building on it knows what a new release may do to them.
| class | what a release may do | how you find out |
|---|---|---|
| held | Not change the meaning of anything already written or accepted. A break needs a new format or protocol version, a migration written down here, and the old vectors kept passing or explicitly retired. | A test in this repository fails first. |
| provisional | Change in a minor release (0.x to 0.y), never in a patch release. | The release notes list it. |
| experimental | Change or disappear in any release. | Assume it will. |
Formats
| surface | class | notes |
|---|---|---|
KVF vocabulary file, text form (kvf_version 0.1) |
held | A vocabulary written by any release since v0.2.0 loads, verifies and keeps its digest. |
| Vocabulary digest (canonical JSON, SHA-256) | held | Reimplemented independently in conformance/kvf_digest.py, which CI runs against every recorded vocabulary. |
Token sequence container (.kute), plain and compressed |
held | Recorded sequences decode to the recorded bytes. |
| Token ids of a published vocabulary version | held | kute evolve only appends; a parent's ids keep their meaning in every child. |
Compact vocabulary file (.kvfb) |
provisional | Same content and digest as the text form; the byte layout may change. Keep the text form as the record. |
Training and evolution rules (generator strings such as kute evolve-3) |
provisional | A changed rule gets a new name. A vocabulary records the rule that made it, and stays valid; what may change is what a new training run produces from the same input. |
| Strict input normalization | provisional | Rejects duplicate keys and numbers that would not survive a round trip. Further rejections may be added. |
Token envelope (specifications/token-envelope) |
experimental |
Protocol
| surface | class | notes |
|---|---|---|
| Peer protocol messages (protocol number 2) | provisional | Peers that speak different numbers refuse each other in HELLO; there is no negotiation down. The number changes whenever a message changes. |
| Mutual TLS transport and fingerprint allow list | provisional | TLS 1.3 only. |
| Policy defaults (everything off unless asked for) | held | A release will not turn on giving vocabularies, answering queries, translating or accepting vocabularies by default. |
| Error codes | provisional | Codes may be added. |
Command line
| surface | class | notes |
|---|---|---|
train, encode, decode, inspect, convert, export, evolve, benchmark, capabilities: names and existing flags |
provisional | Flags may be added. |
| JSON printed on standard output | provisional | Keys may be added; a consumer should ignore keys it does not know. |
| Exit status: 0 for success, 1 when a command fails, 2 when the command line itself is wrong (unknown command or flag, missing argument) | held | Finer exit codes do not exist yet; the error text on standard error is for people and is not a contract. |
discover |
provisional | The report's fields are still settling. |
peer serve, peer send, peer fingerprint |
provisional | Follows the protocol's class. |
mcp |
experimental | See docs/mcp.md. |
keygen, sign, verify, the signature scheme, peer serve --require-signature-from |
experimental | See docs/signing.md. |
serve --studio |
experimental | See docs/studio.md. |
serve --registry, serve --registry-only, fetch, GET /v1/vocabularies |
experimental | New in 0.9. See docs/http.md. |
predict, kute_discover::predict |
experimental | See docs/predict.md. |
shadow |
experimental | See docs/shadow.md. |
live, kute_discover::watch, its checkpoint |
experimental | See docs/live.md. |
events, the KUTE-EV1 container, the kute-events crate |
experimental | See docs/events.md. |
signals, the KUTE-SG1 container, the kute-signals crate |
experimental | See docs/signals.md. |
serve (HTTP, /v1/) |
experimental | See docs/http.md. A breaking change to the interface arrives as a new path version. |
Libraries
| surface | class | notes |
|---|---|---|
kute crate: Engine, Vocabulary, Tokenizer, training, encode, decode, verify |
provisional | |
kute-types, kute-vocab |
provisional | |
kute-core, kute-bpe, kute-algorithms, kute-adapters |
provisional | Public so that backends and adapters can be written against them; expect more change here than in kute. |
kute-protocol |
provisional | Policy gains fields; build it with ..Policy::default(). |
kute-discover |
provisional | |
kute-discover::live |
experimental | A prototype. Its counts are estimates with a stated error; see ADR-0036. |
kute-bench |
experimental | A tool for this repository, published so that reports can be reproduced. |
Python package kute-engine (kute.Engine, kute.Vocabulary, kute.discover) |
provisional | Tracks the Rust kute crate. |
| HRM adapter contract and plugin | experimental | An interface and one reference mapping. |
kute_hrm::compose (bundle, permute-bundle, bind-chain) |
experimental, research | Measured once, with a negative result: docs/representations.md. May be removed. |
backends/rustbpe |
experimental | A reference backend for comparison. |
Minimum supported Rust is 1.85 and is checked in CI. Raising it is a minor release.
Historical vectors
specifications/kvf/vectors holds vocabularies and sequences that are never
regenerated. The directory v0.2.0 in it was written by the released v0.2.0
binary. On every commit:
crates/kute/tests/conformance.rsloads every recorded vocabulary, runs its embedded test vectors, recomputes its digest and compares it with the recorded one; and decodes every recorded sequence and compares the result with the recorded bytes.conformance/kvf_digest.py, which shares no code with the Rust implementation, recomputes the digest of every recorded vocabulary.
All of them pass at this release, so no migration is needed for anything written since v0.2.0. Files from v0.1.0 are not among the vectors and are not covered.
Changes since v0.9.4 that need action
kute serve --tls-cert --tls-key --tls-client-ca(and--allow,--tls-handshake-timeout,--tls-ca) and--tls-cert --tls-key --tls-caonkute fetchandkute jobare new; without them everything is as it was, except the words of two refusals: anhttps://address, and a start on an address that is not loopback.- A service with both
--registryand--jobs-dirlists and gives what its jobs trained, without a restart; it listed only what it was started with, for as long as it runs. Entries from jobs carrytrained_by. A registry downstream that names it as an upstream passes those files on. Rust:jobs::Jobs::trained,jobs::Jobs::file_by_digest. GET /v1/capabilitieshas a new field,tls. Whatkute serveprints at start hastlsandcallers_answered.- Rust,
kute-clias a library:registry::parse_urlreturns aregistry::Targetand not a pair, andregistry::requesttakes one in place of an authority, with a path that is under the target's own.http::Optionshas a new field,tls(Noneis the service as it was). New:registry::client_identity,http::Tls. kute fetchandkute joboverhttps: a connection the service ends with a TLS alert is reported with the alert's reason.- Rust,
kute-protocol:tls::accept_byandtls::connect_by(a handshake with a deadline),Secured::socket,Secured::close, andtls::ServerConfigandtls::ClientConfigby name. Nothing changed foracceptandconnect.
Changes since v0.9.3 that need action
DELETE /v1/jobs/{id}withdraws a waiting job; it was answered405. A job'sstatecan now bewithdrawn, withfinished_unixset and nostarted_unix: a reader that takes any finished job without an error for a trained one needs to look atstate.kute jobis a new command. Rust,kute-clias a library: a new modulejob, andregistry::request.kute serve --vocab-dir DIRis new and off unless given.kute fetch --mirror DIR,--max-filesand--max-total-bytesare new. Rust:registry::mirror,registry::MirrorLimits.kute fetch: a connection that fails while an answer is read is reported as failed, with the kind of failure, where it was reported as "no complete answer in time". Only running out of time says that now.
Changes since v0.9.2 that need action
- Python
Engine.unpack,translateandinspect_containerare new and read at most 16,777,216 units by default (max_units=,max_tokens=): a container can claim a thousand times what it weighs. - Rust,
kute-clias a library:http::Optionshas a new field,jobs(Noneis the service as it was).kute serve --jobs-diris new and off unless given. - Rust,
kute-discover:HeldOutPatternhas a new field,evidence_bits. Code that builds one by naming its fields needs it; JSON written before reads with the field absent. - Studio has a ninth view, Jobs, between Peer and Reports. Anything that picks a view by its position needs the new order.
- Python
kute.signals_unpackreads at most 16,777,216 values by default, not 134,217,728. This is the command line's default. A container with more needsmax_values=. The old default let a small container of compressed zeros ask a caller for several gigabytes.
Changes since v0.9.1 that need action
None for the command line: --status-file and --peer-status are new
and off unless given. Rust: kute-cli's http::Options has a new
field, peer_status (None is the service as it was), and
kute_protocol::Session gains serve_observed; serve is unchanged.
Studio has an eighth view, Peer, and its "Not here" list no longer
names peer status.
Changes since v0.9.0 that need action
kute fetch --max-bytesdefaults to 64 MiB, not 256 MiB. A vocabulary file larger than that now needs the option.kute fetchreports and errors are worded for several registries. The report gainsregistries_passed_over(empty with one registry) and, since the same release,signatures_in_the_fileandsignatures_in_the_file_means. A failure now readsnothing was written. <registry>: <why>for each registry asked; the reason inside is worded as before. With one--from,--listprints what it did, plussays_it_asks; with several it printsregistries, a row each.- The registry listing has two new fields,
upstreamsandupstream_files_need_a_trusted_signature. A registry started without--upstreambehaves as in 0.9.0. - Rust,
kute-clias a library:registry::fetchandregistry::listtake&[String]where they took&str, andhttp::Optionshas a new field,federation(Noneis the service as it was;..Default::default()already gives that).
Changes since v0.8.1 that need action
kute_protocol::Message::SymbolProposehas a new field,signatures. Rust code that builds the variant must give it (signatures: vec![]is the message as it was), and code that matches it in full must name it or use... On the wire nothing changes for a proposal without signatures, and the protocol number is still 2.- A peer with a vocabulary check no longer refuses every proposal.
Peer::require_vocabulary_checkused to make proposals fail outright; now a proposal that carries signatures is derived and put to the check. A check that looks only at content, and not at who signed, will now pass a proposed vocabulary it would pass if sent whole.kute peer serve --require-signature-frommay be combined with--accept-proposals; it takes proposals only when both are given. - The crates are on Rust edition 2024. The minimum compiler is unchanged (1.85). Nothing changes for code that depends on them.
kute serveprints two more keys when it starts (registry,operations), andGET /v1/capabilitieshasregistry. Additions only.- Nothing changes in a file format: vocabularies, token sequences, and event and signal containers written by 0.8.1 are read as before, and Zstandard stays the default codec.
Changes since v0.7.0 that need action
kute-eventsandkute-signalscompile C by default, for Zstandard through thezstdcrate. Since 0.8.1 that is a feature,zstd, on unless turned off: withdefault-features = falsethe two libraries are Rust only, write zlib, and refuse a Zstandard container by name. Corrected in 0.8.1: this note said in 0.8.0 that buildingkute-clihad come to need a C compiler. It already did in 0.7.0, throughringfor TLS, and still does with the feature off.- A signal container may name its codec (0.8.1). One written with
zlib carries
"codec":"zlib"in its header; 0.8.0 does not know the field and reports such a container as damaged. Containers written with Zstandard are byte for byte what 0.8.0 wrote. - A vocabulary file may carry signatures, and one with more than 16,
or with an overlong field in one, is refused. Signatures are outside
the digest: signing changes no digest, and the engine checks none
(
kute verifydoes). kute_hrm::inner_productsums inf64. Similarities can differ from v0.7.0 in the last digits; the stated tolerance is 1e-4.- Vocabularies trained by this release have new digests, as with every release: the generator string is part of the digest. The tokens are the same.
- Everything added in this release (
kute serve,kute events,kute signals,kute live,kute shadow,kute predict, signing) is experimental: its formats (KUTE-EV1,KUTE-SG1, signature files, checkpoints) may change before 1.0.
Changes since v0.6.0 that need action
- Evolved vocabularies made by this release record their parent by
digest (
kute evolve-3), not by a copy of the parent's history. Older evolved vocabularies stay valid and keep their digests. Anything that readprovenance.training.parent_trainingmust readevolved_frominstead. kute peer serveandkute peer sendrefuse to run without TLS unless--insecure-plainis given.- A listening peer gives nothing by default. Serving vocabularies,
answering symbol queries and translating each need their flag
(
--give-vocabularies,--answer-queries,--translate) orPolicyfield. - The peer protocol number is 2. A v0.6.0 peer and this one refuse each other.
- Strict JSON input rejects duplicate keys and numbers that cannot be
represented exactly, which earlier releases accepted and rounded. The
adapter option
strict=falserestores the earlier behaviour (ADR-0029). - A few JSON numbers canonicalize differently. Decimals are now parsed so that they survive a round trip exactly; a number whose last digit earlier releases changed is now kept. Documents containing such numbers give different canonical bytes, and so different tokens, than under 0.6.