Documentation

VLite 0.7.2 upgrade and rollback

VLite 0.7.2 adds an atomic key-value batch and a multi-key read (REST, gRPC, the clients, the shell and the MCP tools), adds key-value operations to the embedded libraries and lets the dashboard sign in while agent memory is enabled.

It follows 0.7.1. The store opens unchanged: there is no new file format, setting or migration, and files written by 0.7.1 open as before. The REST and gRPC surfaces of vlite-server only gain: two REST routes, two gRPC calls, one audit event and one capability flag; vlite-mcp and vlite-shell gain two tools and two commands. The OpenAPI document also corrects the entry of one existing route without changing the route (see Compatibility). Programs that build the routers themselves with the library see the gRPC change described under Upgrade. A file written by 0.7.2 opens in 0.7.1 (see Rollback). No benchmarks were run for this release, and the 0.7.0 numbers make no claim about it.

What is new

Key-value: atomic batch and multi-get

Two operations join get, put, delete and list. A batch writes several keys of one collection, all or nothing, and a multi-get reads several keys in one call. Both need explicit use; single-key operations are unchanged. The key-value guide has the full rules.

Key-value in the embedded libraries

The C library, the Python package (vlite-embedded), the Node.js package (@vlite/embedded) and WebAssembly now carry get, put, delete and list, with the rules of the other surfaces: byte values under namespaced text keys, compare-and-set on versions, an optional absolute expiry (it needs a file of format 5) and ordered prefix listing. They work in an existing collection of one dimension, such as the default collection of a file created with one dimension, and never create one. A page of a list holds at most limit entries (1 to 10,000, default 100) and 16 MiB of JSON. There are no batch, multi-get or lease operations in the embedded libraries.

gRPC applies the memory reservations of its REST router

This is a security fix for programs that build the routers with the library. vlite-server was never exposed: it refuses --grpc-bind while a memory binding is configured or reserved records remain (see Known limits), so a server that runs with memory serves no gRPC. In 0.7.1 a gRPC adapter built after a configured REST router adopted that router's tokens, credential store and audit log but none of its memory reservations, so its lists, reads and imports ignored them. The adapter now adopts the reservations too, and a reserved collection or graph answers like a missing one on every RPC. A generated differential runs the checks of the REST differential on every RPC, with and without bindings.

A program that builds the routers itself must build every REST router first (configured_admin_router, then grpc_router) over one service. The gRPC adapter adopts, once, when it is built, what the REST routers published: normally the tokens, credential store and reservations of the last router. A later router that protects less (no admin token where the published one has one, or reservations that do not cover the published ones) does not replace them, and a build with the grpc feature logs a publication_kept warning. Only the presence of the admin token and the set of reserved resources are compared; the token values, the credential store and the raw-access grants are those of the router that last replaced the publication. In a build with the grpc feature, configured_admin_router returns an error when a gRPC router was built from the service before any REST router, or after one without an admin token (the listener would serve every caller as the administrator); when the router reserves memory resources and a gRPC router has been built; and when the router cannot be ordered against the published one, because each protects something the other does not (the admin token, a reserved resource). The last error also occurs when no gRPC router is built. router and authenticated_router cannot refuse: they log a warning for the first order and, for a later router that would protect less, keep the published tokens and reservations with a warning. After an error, close the service (Service::close().await) and drop it with every router built from it; what the refused router already did stays. Builds without the grpc feature are unchanged. See gRPC.

Agent memory

Expiry and forget are logical deletion. A memory whose expires_at_ms has passed is hidden from reads and later removed from the graph, but its expiry does not carry over to its evidence record: the record stays in the evidence collection until someone with raw_access deletes it, or until it expires on its own if it was given an expiry. Only forget deletes the evidence record that only the forgotten memory used. Neither is secure erasure. This documents behavior that 0.7.1 already had; nothing changed in the server. See Forget.

Clients and guides

The Python, JavaScript and .NET client guides and the JavaScript typings now say how to settle a mutation after a timeout or a cancellation: look up a forget or consolidate with get_receipt and the same idempotency key, and repeat a remember with the same key and body inside the receipt window, because the server refuses a lookup of a remember receipt (409 memory_capability_unavailable, details.feature remember_receipt_lookup). They also state that text and vector recall find only memories that hold an evidence record, and that the Go client has no agent-memory methods. Client behavior is unchanged apart from the new key-value methods above.

Fixed

Upgrade

Back up and verify checksums first. Replace the binary or image with 0.7.2 and restart. The store opens unchanged: there is no format change, no setting and no data migration, and existing files are never converted in place. Follow the single-writer rule in the same order as for 0.7.1: stop the old process (or deactivate the old revision and wait until it has no replica), then start the new one. The 0.7.1 upgrade section explains why and covers hosted apps. If you upgrade from 0.7.0, the 0.7.1 changes come with it: read its checks and First start under 0.7.1 first. 0.7.2 adds no check of that kind.

Check these before you upgrade:

These changes apply with the upgrade and need no further action: the dashboard fixes (the standalone dashboard image needs its own upgrade, above). The reservation parity of the gRPC library path applies automatically too, but a program that builds the routers itself may have to change its build order (above). The batch, the multi-get and the embedded key-value operations need explicit use.

Rollback

Restart with the 0.7.1 binary or image, in the same order as the upgrade: stop the 0.7.2 process (or deactivate its revision and wait until it has no replica), then start 0.7.1 from its pinned image digest. 0.7.2 writes nothing that 0.7.1 cannot read, and there is no exception. A batch commits the ordinary batch frame that the engine already writes for atomic batches (the version-4 frame for a named collection, the format-2 frame only for the default collection), so each entry it wrote is an ordinary record that 0.7.1 reads, lists, updates and deletes. Nothing about a batch is one-way.

After a rollback:

Compatibility

Known limits

Not included in this release

These are not available, and you should not rely on them.

View or edit this page on GitHub ↗