API Stability
Jammi exposes a deliberate, frozen public surface. This page is the operator’s reference for what is stable, what semver promise covers it, and how the freeze is enforced — not as prose anyone can let drift, but as a CI guard that reds the moment a stable surface changes shape.
The single principle: a stable surface does not change under you without a major. A verb is not renamed, an rpc is not dropped, a wire package is not removed, and a persisted-format version is not reinterpreted, across any release that does not bump the major version. The surfaces below are the ones that promise holds for; everything not listed here is internal and may move.
The frozen stable surfaces
Three surfaces are frozen. Each is machine-checked against a committed baseline, so the freeze is enforceable rather than aspirational (see Enforcement).
1. The verb set — the call surface
The public verb vocabulary a caller invokes — identical name-for-name and
signature-for-signature across the embedded (jammi.EmbeddedBackend) and remote
(jammi.RemoteDatabase) transports. It is pinned, set-by-set, in
crates/jammi-python/tests/test_conformance.py; those sets are the frozen
verb list:
| Verb set (conformance constant) | Verbs |
|---|---|
_REMOTE_VERBS | add_source, generate_embeddings, encode_query, search, lexical_search, sql, list_sources, describe_source, set_tenant, tenant_scope, tenant, get_server_info |
_TRAINING_VERBS | fine_tune, fine_tune_graph, train_context_predictor, predict_with_context_predictor, training_job, list_training_jobs |
_INFERENCE_VERBS | infer |
_PIPELINE_VERBS | build_neighbor_graph, build_lexical_index, propagate_embeddings, generate_structure_embeddings, asof_join, assemble_context, recompute, verify_materialization, staleness, derives_from |
_EVAL_VERBS | eval_embeddings, eval_per_query, eval_inference, eval_compare, eval_calibration |
_CHANNEL_VERBS | register_channel, add_channel_columns, list_channels |
_NUMERIC_VERBS | conformalize, conformalize_interval, conformalize_cqr, rrf_fuse |
_MUTABLE_TOPIC_VERBS | create_mutable_table, drop_mutable_table, list_mutable_tables, register_topic, drop_topic, list_topics, publish_topic, subscribe_collect |
_LIFECYCLE_VERBS | list_models, describe_model, delete_model |
_SEGMENT_VERBS | list_index_segments |
_SEARCH_VERBS | search (pinned separately for the embedding_table= selector) |
The conformance suite is the enforced annotation: removing or renaming a verb,
or changing its signature on either transport, reds the suite. Jammi does not
carry a per-pub-item #[stable] rustdoc attribute — Rust has no such
attribute, and history-bearing version markers in rustdoc are explicitly
disallowed — so the conformance sets carry the freeze that a #[stable] pass
would carry elsewhere.
2. The wire contract — package jammi.v1.*
The gRPC/Flight SQL wire surface is the thirteen jammi.v1.* proto packages
(ten served on the public listener; two, jammi.v1.peer and jammi.v1.gang,
served only on the internal [server] peer_bind listener — the public
listener answers UNIMPLEMENTED for their rpcs; jammi.v1.lifecycle is a
contract-only surface — defined in the wire descriptor so the candle-free
client can call a platform server that implements it, but answered by no OSS
handler):
| Package | Surface |
|---|---|
jammi.v1.audit | provenance / audit log rpcs |
jammi.v1.catalog | sources, models, channels, tenant, server-info, mutable tables, topics |
jammi.v1.embedding | embedding generation, query encode, search |
jammi.v1.error | the typed wire-error message (no rpcs) |
jammi.v1.eval | the evaluation rpcs |
jammi.v1.gang | the coordinator-to-member gang-admission seam for a multi-host training run (GangService.RunRank) — served only on peer_bind, never on the public listener; the caller’s tenant is never read — the member derives it from the verified jobs row and resolves a multi-host job’s training set under it alone (see Security Posture) |
jammi.v1.inference | bulk inference + predict |
jammi.v1.job | the durable job queue: submit / status / wait / list / cancel / list-workers / prune (JobService) |
jammi.v1.lifecycle | license apply / bootstrap / status / login — contract-only, answered by a platform server (the OSS engine returns UNIMPLEMENTED) |
jammi.v1.peer | the engine-internal segment-search seam between replicas (PeerService.SegmentSearch / ExactRescore) — served only on peer_bind, never on the public listener; deliberately tenant-free (the coordinator enforces tenant scope; see Security Posture) |
jammi.v1.pipeline | graph / context / as-of / recompute / materialization rpcs |
jammi.v1.training | the training spec message vocabulary JobService.SubmitJob’s oneof carries (FineTuneSpec/GraphFineTuneSpec/ContextPredictorSpec/FineTuneConfig/…) — no rpcs of its own since TrainingService folded into JobService |
jammi.v1.trigger | topic publish + subscribe |
The contract is the full set of (Service, Method) rpc paths these packages
define — decoded from the compiled FILE_DESCRIPTOR_SET, the authoritative
machine-readable description of the frozen wire surface, which may exceed what a
given build mounts (jammi.v1.lifecycle is defined here yet served by no OSS
handler), not a hand-maintained list. The v1 in the package path is the wire-stability stamp:
a breaking change to a message or an rpc shape requires a jammi.v2.* package,
not an in-place edit of v1.
3. The persisted-format versions
The on-disk format-of-record versions, each a writer-stamped, reader-checked version with reject-newer (or strict) semantics — the full contract is on the Format Stability page:
| Format | Stamp | Current version |
|---|---|---|
Materialization manifest (.materialization.json) | MANIFEST_VERSION | 5 |
ANN row map (.rowmap) | ROWMAP_VERSION | 1 |
ANN sidecar manifest (.manifest.json) | ANN_MANIFEST_VERSION | 3 |
| Catalog schema | append-only migration ledger | see crates/jammi-db/src/catalog/migrations.rs |
The catalog migration ledger is append-only: a migration is never edited or removed once shipped, only a new numbered migration is appended. The other three stamps follow the reject-newer idiom — a newer stamp than this build knows is a typed rejection, never a silent misparse.
The semver commitment
This release is the terminal 0.x engineering bar: the three surfaces above
are frozen, and a breaking change to any of them — a renamed/removed verb, a
dropped rpc, a removed jammi.v1.* package, an incompatible reinterpretation of
a persisted-format version — does not ship without a major version bump. New
additive surface (a new verb, a new rpc, a new appended migration) may land in
a minor; it does not break a caller written against the frozen set, because it
only grows the surface.
Concretely:
- A new verb is added to a conformance set in the same PR that adds the verb, on both transports — additive, minor-compatible.
- A removed or renamed verb is a breaking change — major only.
- A new rpc is a new
(Service, Method)path appended to the wire baseline — additive. A removed/renamed rpc, or a removedjammi.v1.*package, is breaking — major only, or ajammi.v2.*package for a message-shape break. - A persisted-format version is bumped only when the layout changes; the reject-newer guard then makes an old reader fail loud rather than misparse, and the recovery is to re-emit (see Format Stability).
Pre-1.0 amendment. Until the 1.0 release, the jammi.v1 wire
contract may still change — including a genuinely breaking rpc rename or
removal — when BOTH of the following hold in the same PR: the frozen baseline
(crates/jammi-server/tests/it/api_freeze_baseline.txt) is updated to match
the new live surface, and the CHANGELOG carries an explicit Breaking
entry describing the change and its migration. The freeze-guard test still
enforces that the live surface and the committed baseline agree exactly — the
amendment relaxes only WHICH edits to the baseline are allowed pre-1.0 (an
announced breaking edit, not a silent one), never the mechanism that catches
an unannounced divergence. The following release then bumps the minor
version rather than the major — the terminal-0.x window is itself the
“stabilizing” period the eventual 1.0 major bump closes.
Experimental surfaces
There are none. Every public verb in the conformance sets, every jammi.v1.*
rpc, and every persisted-format version above is frozen — none is marked
provisional or experimental, and none ships behind an “unstable” flag. A surface
that is not yet ready to freeze does not appear on the public client at all; it
stays internal until it is ready to enter the frozen set. The freeze is total
across the published surface, which is what the terminal-0.x bar requires.
Published-crate Rust APIs
Twelve workspace crates lack publish = false and are therefore published
Rust crates: jammi-admin, jammi-ai, jammi-cli,
jammi-client, jammi-db, jammi-encoders, jammi-datafusion,
jammi-kernels, jammi-lora, jammi-numerics, jammi-server, and
jammi-wire. Their public items (types, functions, trait
signatures, struct field visibility) are a real compile-time surface for any
consumer outside this workspace, distinct from the three CI-enforced surfaces
above. This surface carries no CI freeze guard — there is no descriptor to
decode or conformance set to pin a bare Rust signature against — so a breaking
change here is caught only by review, and is recorded as a BREAKING entry
in the CHANGELOG the same way every other breaking change in this workspace
is, naming the item, what changed, and what the caller does instead.
Breaking changes to this surface in the current release:
- The vector-search API takes a validated query type, not a bare slice.
jammi_numerics::query::ValidatedQueryis the only typejammi_numerics::distance::{cosine_distance, cosine_similarity},jammi_db::index::VectorIndex::search,jammi_db::index::segment::{search_unit, rescore},jammi_db::index::segment::SegmentedIndex::{search, search_final},jammi_db::index::exact::exact_vector_search,jammi_db::index::placed::PlacedIndex::search_final_placed,jammi_db::store::ResultStore::{search_vectors, search_vectors_local},jammi_ai::operator::vector_search_exec::VectorSearchExec::new(and itsquery_vectorfield), andjammi_ai::pipeline::neighbor_graph::Node’svectorfield accept for a query vector.jammi_db::index::segment::verify_query_width(a freepub fn) is removed with no replacement — its check isValidatedQuery::require_width, a method on the type itself, not a function a caller could import. A query has two checked states (both re-exported fromjammi_numerics::querybyjammi_db::index, along with theQueryValidationErrorerror type):FiniteQuery::new(values, source)checks finiteness and yields a width-UNCHECKED query that exposes no component, length or slice and that no consumer accepts;FiniteQuery::against_authority(width)is its one transition to aValidatedQuery; andvalidate_query(values, width, source)composes the two for an entry that holds its authority up front.widthis ausize, never optional — there is no width-less path to aValidatedQuery.sourceis ajammi_db::index::QuerySource::{Caller, Stored { table }}.ValidatedQuery’s inherent methods areas_slice,into_inner,sourceandrequire_width. The width authority for a result table isjammi_db::store::ResultStore::{query_width, query_width_local}(the catalog’s recorded width; for a row that records none, the width of the index or scan a search of the table reads —PlacedIndex::query_width,SegmentedIndex::dimensions,jammi_db::index::exact::scan_width).exact_vector_searchalso gained acatalog_dimensions: Option<usize>parameter (a cross-check against the scan’s own width;Nonewhen there is none on record).jammi_db::index::peer::{SegmentSearchRequest, ExactRescoreRequest}’squeryfield is aValidatedQuery, not aVec<f32>;PeerFailureReasongained theCallerFaultvariant,PeerErrorgained amessage: Stringfield, andPEER_FAILURE_LABELSis[&str; 10]. jammi_db::catalog::result_repo::ResultTableRecord::dimensionsis a method, not a field. It returnsOption<std::num::NonZeroUsize>— a non-positive stored value and an absent one are bothNone.dimensions_raw() -> Option<i32>returns the stored column verbatim, for a caller that must round-trip it unfiltered. A caller that built aResultTableRecordfield-by-field from outside this crate now goes throughResultTableRecord::from_wire_projection, the crate’s sole cross-crate constructor.jammi_wire::peer::{phase_from_proto, precision_from_proto}return aProtoEnumDecode<T>, not anOption<T>. The wire’s explicit “not set” (ProtoEnumDecode::Unspecified) and a raw value this build’s generatedenumhas no variant for (ProtoEnumDecode::Unknown) are no longer collapsed into oneNone— a caller that only needs “did this decode” calls the new.known() -> Option<T>to get the old behaviour back.- Whose fault a width mismatch is depends on where it is found, and the
types decide which check that is.
FiniteQuery::against_authorityis the ENTRY check: it attributes a mismatch by the query’s own provenance (QueryValidationError::Width { source, .. }—JammiError::Schemafor a caller’s vector,IncompatibleFormatnaming the table for a stored one).ValidatedQuery::require_widthis the DOWNSTREAM check: it takes anartifact: impl Into<String>and returnsQueryValidationError::ArtifactMismatch { artifact, expected, actual }, which carries noQuerySourceat all — a mismatch it finds is always attributed to the named artifact, never the caller. AValidatedQueryhas no method that can express a caller fault and aFiniteQueryreaches no consumer, so no search entry can skip the authority check or blame the caller for an artifact’s drift.QueryValidationError::source()returnsOption<&QuerySource>(NoneforArtifactMismatch).QuerySourcehas exactly two variants,CallerandStored— the states a query’s own provenance can actually be; an artifact mismatch is the dedicatedArtifactMismatcherror variant above.JammiError::Schemaconstructions injammi_db::index::exact::exact_vector_search,jammi_db::index::placed::PlacedIndex::search_mixed,jammi_db::store::vectors::{extend_with_fixed_size_list_f32, extend_with_keyed_fixed_size_list_f32}, andjammi_db::store::deletes:: DeletionMask::readthat priced an ENGINE-owned artifact’s own corruption as the caller’s fault are nowJammiError::IncompatibleFormat; the twostore::vectorsfunctions changed their error type to the new, provenance-neutraljammi_db::store::vectors::VectorColumnError(?converts it toIncompatibleFormatby default;.into_caller_fault()is the explicit override the one caller-supplied read path, behindimport_embeddings, now uses). jammi_db::store::ResultStore::result_digest_anchoris removed with no replacement. It resolved a result table’s current version and then discarded the resolution, returning a bareInputAnchora caller could not get the matching content back from without a second, independent resolve — a version publish landing between the two could straddle. CallResultStore::pin_current_version(record).await?.input_anchor()instead; the versioned arm already delegated to exactly that internally, so the returned value is unchanged.
Enforcement: the freeze-guard
The freeze is a CI guard, not a promise in prose. Two checks run on every PR:
- The wire contract + manifest version are pinned in a Rust integration test
(
crates/jammi-server/tests/it, theapi_freezemodule). It decodesFILE_DESCRIPTOR_SETinto the live(Service, Method)rpc set and the livejammi.v1.*package set, and asserts they equal a committed frozen baseline; it also assertsMANIFEST_VERSIONequals its frozen value. The test derives the live surface from the compiled descriptor — the same source the server actually serves — so a divergence between the served surface and the baseline cannot hide. - The verb set is pinned in the conformance suite
(
crates/jammi-python/tests/test_conformance.py), which asserts every verb in every set is callable with an identical signature across both transports.
Removing or renaming a stable rpc reds the Rust guard: the live (Service, Method) set decoded from the descriptor no longer equals the committed baseline,
and the assertion fails naming the rpc that disappeared (or the one that
appeared without a baseline update). Removing or renaming a verb reds the
conformance suite the same way. The freeze has teeth because the baseline is a
committed artifact a change must explicitly and visibly edit — and editing it to
drop a stable surface is exactly the breaking change the semver commitment
forbids outside a major.