Documentation
VLite 0.7.1 upgrade and rollback
VLite 0.7.1 makes the protection of reserved agent-memory resources structural, stops the gRPC disk-ANN calls from letting a client choose a file path, finishes the follow-ups of the first agent-memory slice, refuses a record put whose expiry is already due, bounds key-value listing and tool input, records a stable actor in audit events and adds Key-value and MemoryAI workspaces to the dashboard.
It follows 0.7.0. The store opens unchanged: there is no new file format, setting or migration, and files written by 0.7.0 open as before. A few answers change (see Compatibility): recall distances, some requests that now answer 422, backups on servers with memory bindings and the gRPC disk-ANN path rule. Two new guides cover agent memory and the key-value store. No new benchmarks were run; the 0.7.0 numbers stand.
What is new
Security
Which of these apply depends on what you run. The request guard matters on servers with memory bindings or tenants, and the disk-ANN rule on servers with gRPC and scoped credentials.
-
One request guard for every path that names a resource. A request that names a collection, graph, import job or tenant resource now goes through one per-request guard before any handler looks the name up. The guard qualifies the name for a tenant, checks the credential's name grant, hides a reserved resource from a caller without raw access, looks the name up and then checks the credential's binding to that collection, in that order. It covers REST, gRPC and webhook handlers, including collections named in a request body, credential grants, import jobs, lists, metrics, the slow-query log and change feeds. A reserved agent-memory resource answers like a missing one (like an occupied one on a create) for every caller that does not hold
raw_accesson the owning binding; the administrator token, the read-only token and dashboard sessions never hold it. 0.7.0 made these decisions handler by handler, and its two tenant-isolation fixes came from handlers that looked a name up twice. A source-scanning test now fails when server code looks a collection or graph up by name outside the guard, and a differential test generated from the served OpenAPI document sends every route that names a resource, with reserved, missing and ordinary names, through every kind of caller, with and without bindings. Answers for ordinary names do not change. See Memory-bound resources. -
gRPC disk-ANN paths are the server's for everyone but the administrator. Before 0.7.1,
BuildDiskAnnandSearchDiskAnntook the sidecar path from the client, so a credential scoped to one collection could make the server write or read a file at a path the client chose, anywhere the server process can reach. Now only the administrator token may name a path (and must send one). Every other caller, a scoped credential or the read-only token, must leavepathempty: the server then usesdisk-ann-<collection id>.dannin the administrator directory (VLITE_ADMIN_DIR), the file the REST routes use, and a non-emptypathfrom such a caller is refused with 422invalid_input(gRPCINVALID_ARGUMENT). Without an administrator directory these calls answer 409admin_directory_disabled. Clients that sent a path with a scoped credential must drop it. The administrator'sSearchDiskAnnnow opens the sidecar after it has checked the collection, so a badpathfor a collection that does not exist answersNOT_FOUNDfor the collection instead of the I/O error for the path. Only servers that enable gRPC (--grpc-bind) were exposed, and the RPCs do not run on encrypted databases. Rolling back to 0.7.0 reopens the hole: 0.7.0 lets a credential that holdsindexorsearchname the path. See gRPC and Security. -
Backups are the administrator's while anything is reserved. While a memory binding is configured, or the database holds reserved memory resources, the backup routes (list, create, verify, drill and schedule status) answer 403
forbidden_scopeto every scoped credential, even one that holds thebackupoperation, because a backup holds the reserved data and its database-wide counts. The administrator token still reaches them. An external backup job that uses a backup credential gets 403 once memory bindings exist: run it with the administrator token, or take the backups before you enable memory. -
Hidden attempts are audited without the name. A credential's request for a reserved resource it may not reach answers like a request for a missing one, so the caller cannot tell. The operator can: the server writes a
reserved_hidden_attemptentry to the persistent audit log, at most once a minute for each credential and route, with the credential ID, method, route template and request ID, never the name. The server exports no count of these attempts. The limiter that spaces the entries tracks at most 4,096 credential and route pairs within a minute and is shared withcredential_deniedentries, so a burst of scope denials can fill it; an attempt that finds it full leaves no entry. The append is synchronous, so the first attempt per credential, route and minute can answer slightly slower than a request for a missing name. A reserved name in a retrieve request'sevidence.collectionsis hidden the same way but is not audited. -
The administrator's tenant list and usage report count reserved collections. They now list and count them, so the headroom they show is the headroom a quota enforces (0.7.0 left them out). No credential can read these reports.
-
One change-feed rule on every transport. REST
GET /v1/changes, gRPCChangesand theWatchChangespoll, and webhook delivery decide with the same rule, which checks the credential's names and grants, drops events of reserved collections and graphs and drops the attach and detach operations of reserved collections. The gRPC calls stay administrator-only; the change is that a route-level refusal is no longer the only barrier, and behavior is unchanged for every caller that can reach those routes. A filtered feed still shows that something was hidden:has_more,next_cursor,headand gaps in thesequenceandordinalof the remaining events let a caller count hidden activity, though not read it. -
Dropping a collection takes the same checks whichever way the server reaches it. Internally the server drops a collection by the ID that the request guard resolved, and that path now starts with the same shared check as
DELETE /v1/collections/{collection}(the state of the database, then its format), then refuses thedefaultcollection, then looks the collection up. No answer changes; the order for a drop by name is the one 0.7.0 had. -
A reserved graph takes only its own evidence collection. Attaching a record of any other collection to a node of a reserved graph answers 409
graph_record_not_attachable, raw holders included, so an ordinary record cannot be pinned by a reserved graph. Records attached by an earlier version stay attached until the holder detaches them. Under 0.7.0 a raw credential could attach an ordinary record to a node of its reserved graph, and nobody without raw access could then delete or detach it. -
Audit events name a stable actor. Events that record who acted carry an
actorthat holds no secret (the one exception isreserved_hidden_attempt, which carries the credential ID, method, route and request ID but noactor):admin_token,user:<account id>,read_only_tokenor the credential ID of a scoped API key.kv_put,kv_delete,memory_requestandcredential_deniedevents gain it. The collection events (collection_created,collection_dropped,collection_settings_changed) already had anactorthat readadminfor the bootstrap token and for every super admin; it now readsadmin_tokenoruser:<account id>. The account events carry the same forms. Two super admins can now be told apart (theprincipalof akv_putormemory_requestevent still readsadminfor every super admin), and an account has the same actor in all its sessions. Update audit queries that match anactorofadminso that they also match the two new forms;principalis unchanged. See Audit actors.
Agent memory
Agent memory stays opt-in and off without a bindings file. These follow-ups finish the first slice; the agent memory guide describes the whole feature.
exactandmmrrecall measure cosine distance.ranking.selectionexactorders its vector candidates by1 - cos(0 for the same direction, 1 for orthogonal and 2 for opposite vectors), and bothexactandmmrreport it asscores.distance. The defaultweightedselection is unchanged and still measures squared Euclidean distance. A query vector of zero length has no direction:exactandmmranswer 422invalid_input(0.7.0 accepted one underexact). A stored zero vector is never a vector candidate ofexactormmr.exactacceptstexttogether with a vector (0.7.0 refused it with 422memory_unsupported_ranking). The vector candidates are ordered by cosine distance and fused with the BM25 text candidates by reciprocal rank; a candidate found only by text is kept without ascores.distance.mmrwithtextstill answers 422memory_unsupported_ranking, andmode: approximatestill answers 422memory_bounded_plan_unsupported.- Evidence references on
rememberitems. An item may carryevidence: [{"collection": "<binding name>", "record": <u64>}]that names a record that already exists in the binding's evidence collection (at most one per item). It needs a grant withraw_access: without it the answer is one 403 before any record is looked at. A record that is missing, hidden or already held by a memory is one 409memory_attachment_conflict. The request-levelevidencelist and theevidenceof a consolidate output stay refused. Attaching transfers the record to the memory: forgetting the memory deletes the record too, so do not attach a record you still need. It is a one-way change for the file; see Rollback. - The raw graph batch route refuses memory's reserved names.
POST /v1/graphs/{graph}/batch, on every graph and for every caller, answers 422invalid_input("a node key or label is reserved for agent memory") and writes nothing when an operation creates or replaces a node (create_node,upsert_node) with a reserved key or with a label that starts withVliteMemory, patches (patch_node) a node with a reserved key, or adds such a label to a node. Reserved keys start withscope:v1:,mem:v1:,receipt:v1:,receipt-outcome:v1:orcontent:v1:, or are exactlybinding:v1. Deleting such a node and removing such a label from a node with an ordinary key stay allowed. A raw caller that wrote those names under 0.7.0 now gets 422. - A binding's identity is stored in the database. Each bound graph holds one record node,
binding:v1, with the binding's name, tenant, generation, state, receipt window, graph and evidence names and a digest of its grants. Each start checks the bindings file against the records. A binding's receipt window, graph and evidence collection never change; changing grants or state needs a highergeneration; a retired binding never becomes active again and keeps itsretired_at_ms; an entry leaves the file only after it is retired and its receipt window has ended. A start that breaks a rule is refused with a fixed message that names nothing. Before everyremember,consolidateandforget, the server rereads the record under the write lock; a missing or different record answers 409memory_capability_unavailablewithdetails.featurebinding_generationand writes nothing. A graph is adopted when it is empty, holds the binding's record or (once, for a graph that a 0.7.0 server adopted) holds nothing but memory nodes; one node labelledVliteMemoryScopeno longer makes a graph adoptable. Without a bindings file, a graph that holds a record and its evidence collection stay reserved from the raw routes, with no grants. - Two limits are documented, with no change in behavior. Idempotency keys are scoped to the binding and the memory scope, not to the credential, so credentials that may write one scope are peers. The receipt
sequenceis the database's commit sequence and has no per-binding form: use separate database files for tenants that must not observe each other's write volume.
Key-value store and tools
- Listing reads the collection once per page. A key-value list used to collect and sort every matching key before it applied
limit, and REST, gRPC,vlite_kv_listandkv-listbuilt a page from several scans. A page now comes from one scan that keeps only thelimit + 1smallest candidate keys in memory, so its working memory no longer grows with the number of matching entries. Results are unchanged: a page-by-page comparison with 0.7.0 over 1,719 requests found no difference. The scan still reads the whole collection, so its cost still grows with the number of entries. The RustKvView::visit_athands each entry (KvRef, withhas_next) to a callback without copying it;liststill copies every value it returns, so use a smallerlimitorvisit_atwhen values are large. - Slot exhaustion is counted. The metrics gain a counter,
kv_slots_exhausted_totalin the JSON metrics andvlite_kv_slots_exhausted_totalin Prometheus. It counts key-value puts refused with 409kv_slots_exhausted(gRPCFAILED_PRECONDITION), for all credentials together; a REST request whose client disconnected before the answer was produced is not counted, and a gRPC call is counted even if its client cancels. Anyone who can write a collection can fill the 16 record IDs of a key, and a rise that nobody expects points at records planted over a key's IDs. Behavior and format are unchanged. See Key-value permissions. - Input lines are capped.
vlite-mcpanswers a request line over 128 MiB (134,217,728 bytes) with JSON-RPC error -32600 (idnull) and carries on with the next line.vlite-shellrejects a command line over 16 MiB withinvalid_input: line exceeds 16777216 bytes.vlite-importrejects a JSONL or COPY line over 16 MiB as a bad row (rejected row N: line exceeds 16777216 bytes) and publishes nothing. CSV, pgvector, FAISS, Parquet and Arrow have no line limit. 0.7.0 read lines of any length. Split or compact such lines.
Dashboard
The dashboard has two new workspaces, Key-value and MemoryAI, so it now has nine. Key-value browses an existing one-dimension collection by namespace and prefix and writes with exact version conditions; MemoryAI remembers, recalls, consolidates and forgets through an operator-provided binding with a scoped API token, because administrator sign-in alone grants no memory access. Search gains controls for embedding and ranking providers (an alias that the operator configured offline; models and secrets are never entered in the dashboard) and management of named and sparse vectors. Graphs are interactive in 2D and in force-directed 3D: drag nodes, pan (2D) or rotate (3D) the view and zoom. See the dashboard guide.
Fixed
-
A record put with an expiry that is already due answered 500 after writing.
PUT /v1/collections/{collection}/vectors/{id}andPUT /v1/vectors/{id}with anexpires_at_msat or before the server clock, or attl_msof 0, wrote the record and then answered 500internal_error: the old record had been replaced by one that read as absent. They now answer 422invalid_inputand write nothing. Send a future deadline or omit the expiry. Errors that the engine raises first, such as a file older than format 5, a failedIf-Matchor an invalid vector, keep their answers. The key-value routes still accept an already due deadline by contract. See Record expiry and metadata. -
gRPC
PutVectorwith an expiry that is already due is refused. 0.7.0 answered OK and stored a record that nobody could read. APutVectorwith anexpires_at_msat or before the server clock now answersINVALID_ARGUMENTand writes nothing. Leave the field unset for no expiry; never send 0. See gRPC. -
ttl_mscounts from the moment the write is applied. A short lifetime no longer fails because the write waited its turn, for example in a group commit. The minimum is 1.
Upgrade
Back up and verify checksums first; for an app on a file share, also take a share snapshot while every revision is deactivated, because backups kept in the administrator directory sit on the same share. Replace the binary or image with 0.7.1 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 this order: stop the old process (or deactivate the old revision and wait until it has no replica), then start the new one. The file lock does not make it safe to skip this order: a second process that finds the file locked exits with database is already locked, and locking across hosts on a network file share is not proven, so stopping the old process first and confirming that it is gone is the only guard. A hosted app whose platform normally starts the new revision before it stops the old one (a rolling update) must be set to stop the old one first, so that only one process opens the file. The Container Apps deployment works this way: it deactivates every old revision, waits for zero replicas and accepts the downtime. Its script replaces the whole container template (arguments, environment, image and vector dimension), so if your app's arguments or environment differ from that template, do not run it: deactivate every revision, wait for zero replicas, change only the image with az containerapp update --container-name <name> --image <image>@sha256:<digest>, and compare az containerapp show before and after.
Check these before you upgrade:
- Raw graph writers. Every graph, with or without memory, now refuses through the REST batch route
POST /v1/graphs/{graph}/batch: an operation that creates or replaces a node with a key that starts withscope:v1:,mem:v1:,receipt:v1:,receipt-outcome:v1:orcontent:v1:(or is exactlybinding:v1), that patches a node with such a key, or that gives a node a label that starts withVliteMemory(case-sensitive) answers 422invalid_input, and the whole batch is not applied. Check that your graph writers do not use such keys or labels. Opening the file directly (vlite-mcp --db,vlite-graph-cli) is not covered by this server-side check. - Agent memory. If you use memory, read First start under 0.7.1 below and check two things. First, reserved names in graphs: a graph you bind must hold only memory nodes (a
raw_accessholder may have written ordinary nodes into a bound graph under 0.7.0, and the first start refuses it). Second, the bindings file: the receipt window, graph and evidence names of each binding must still be the ones 0.7.0 used, and a change to grants or state needs a highergeneration. - Backups. An external job that backs up with a backup credential gets 403 once memory bindings exist. Switch it to the administrator token, or take the backups before you enable memory.
- gRPC with scoped credentials. A client that sends a disk-ANN
pathwith a scoped credential or the read-only token must stop sending it. - Record puts with an expiry. A client that sends an
expires_at_msat or before the server clock, or attl_msof 0, now gets 422 instead of a record that reads as absent. Over gRPC,PutVectoranswersINVALID_ARGUMENTfor anexpires_at_msat or before the server clock, and anexpires_at_msof 0 is such a value. Send a future deadline, or leave the expiry out. - Audit queries. A query, alert or export that matches the
actorof a collection event onadminmust also matchadmin_tokenanduser:<account id>.principalandcredential_idare unchanged. - Recall thresholds. For vectors of unit length the order of
exactandmmrhits is unchanged and the reported distance is half the 0.7.0 value (0.7.0 reported squared Euclidean distance). For vectors that are not unit length,exactcan order its hits differently andmmrcan select different memories (its candidate pool is now chosen by cosine), and everyscores.distanceof both changes: recalibrate any threshold on it.weightedrecall is unchanged.
First start under 0.7.1
These apply to a server that has a memory bindings file. A server without one writes nothing: at every start it only looks for a binding:v1 record node in each graph. If such records are left in the database after the file was removed, they stay reserved with no grants, and the server then refuses to start with --grpc-bind or automatic index maintenance (the message says that the database holds reserved memory resources).
- On a writable primary, the first start writes one record per bound graph (one node and one commit each), then provisions the granted scopes as before. An unchanged record is not rewritten, so a restart with the same file adds no commit. A read-only node or a replica runs every check, writes nothing and keeps using the file where a record is still missing.
- A graph that a 0.7.0 server adopted gains its record at that first start. A bound graph that holds anything but memory nodes (for example ordinary nodes that a
raw_accessholder wrote into it under 0.7.0) is refused as holding ordinary data: start once without the bindings file, delete those nodes with the raw routes, and start again with the file. - An entry that is already
retiredand has no record yet counts as retired by this start, so aretired_at_msin the past is refused (the message is "a memory binding retirement time precedes this start"): set it to the current time or later. - A file whose active entry changed its receipt window or its graph or evidence names (these never change), or its grants or state without a higher
generation, since its record was written is refused; so is an active entry that was removed before it was retired and its receipt window had ended. - The raw-name guard and the record ship together: adoption relies on the guard. Nodes planted before 0.7.1 are not found by the guard, and a forgery that consists only of well-formed memory nodes cannot be told from memory, so bind only resources that were created for memory.
These changes apply automatically and need no action: the request guard, the hidden-attempt audit, the tenant usage report, the change-feed rule, the bounded key-value scan and page, the line caps and the dashboard. Evidence references need explicit use: an item that carries one and a grant with raw_access.
Rollback
Restart with the 0.7.0 binary or image, in the same order as the upgrade: stop the 0.7.1 process (or deactivate its revision and wait until it has no replica), then start 0.7.0 from its pinned image digest. 0.7.1 writes nothing that 0.7.0 cannot read, with the exceptions below. 0.7.1 adds no route, but 0.7.0 refuses an item evidence field with 409 memory_capability_unavailable (feature evidence) and exact recall with text with 422 memory_unsupported_ranking, so stop clients from sending them.
- Item evidence references (one-way). An evidence reference is stored in the memory node as the literal token
record:<number>, which a 0.7.0 server cannot read. After the first reference, do not roll back to 0.7.0. Measured with the real binaries (a 0.7.1 build wrote one memory with a reference; a 0.7.0 server then opened the same files):
| On 0.7.0, in the scope that holds such a memory | Answer |
|---|---|
recall by seed, recall by vector, a new remember, forget, consolidate |
500 internal_error |
an exact replay of a remember that carried no reference |
200 |
| a replay of the request that carried the reference | 409 memory_capability_unavailable (feature evidence) |
recall and a new remember in another scope |
200 |
| a raw read of the evidence record | 200, intact |
The server stays up and writes nothing wrong; the failure is explicit, but it covers every memory operation of that one scope. Recovery: run 0.7.1 or later and forget the memory. That deletes the node and the referenced record and leaves no token behind, and 0.7.0 then answers 200 again for recall and a new remember in the scope. scripts/memory_evidence_downgrade_check.py --new-bin PATH --old-bin PATH repeats the measurement with two server binaries.
-
A bound graph that never received a scope. 0.7.0 ignores the record node: it finds memory nodes by label and scope nodes by key, and only its adoption check looks at the whole graph. That check accepts any graph with a scope node, so every graph that holds one rolls back safely. A bound graph that never received a scope (a binding without grants, or one that was retired before it had any) holds only the record, and 0.7.0 refuses it at startup as holding ordinary data: start 0.7.0 once with that entry removed from the bindings file, delete the
binding:v1node withPOST /v1/graphs/{graph}/batch, and then start it again with the entry. -
gRPC disk ANN. 0.7.0 lets a credential that holds
indexorsearchname the sidecar path again. If you run 0.7.0 with gRPC, do not give those operations to credentials you do not trust. -
Audit log. The audit log is only appended to, so the lines that 0.7.1 wrote keep their form. After a rollback to 0.7.0 both forms of the collection events'
actorsit in one log, and 0.7.0 reads such a log without error and ignores the newactorfield. Read both forms of a log that spans an upgrade or a rollback.
0.7.0 reads the bindings file itself and does not know the binding record, so it reserves what the file names and nothing else. The 0.7.0 dashboard has no Key-value or MemoryAI workspace.
Compatibility
-
Files and settings. No file format, flag, setting or dependency changes (
Cargo.tomlandCargo.lockmatch 0.7.0 apart from the version), and the minimum Rust version (1.89) is unchanged. A file written by 0.7.1 opens in 0.7.0, with the two memory exceptions under Rollback. -
Wire. There are no new routes or RPCs (the paths and methods in both OpenAPI documents are the same as in 0.7.0, and the proto file changed only in comments). Answers change in these places: recall distances, a zero-length query vector for
exactandmmr(422) andexactwithtext; the itemevidencefield; 422 from the raw graph batch route for reserved names; 422 from the record put routes for a due expiry, attl_msof 0 or attl_msthat overflows Unix milliseconds, and gRPCINVALID_ARGUMENTfromPutVectorfor a dueexpires_at_ms; 409graph_record_not_attachablefor an attach to a reserved graph; 403 from the backup routes while anything is reserved; the administrator's tenant list and usage report, which now count reserved collections; 422 or the server-derived path for a gRPC disk-ANN call by a caller that is not the administrator; and thebinding_generationvalue ofdetails.feature. The metrics gainkv_slots_exhausted_total(Prometheusvlite_kv_slots_exhausted_total), and the OpenAPI document says that the putexpires_at_msmust be later than the server clock and thatttl_msis at least 1. -
Audit log.
kv_put,kv_delete,memory_requestandcredential_deniedevents gain anactorfield.kv_put,kv_deleteandmemory_requestkeep theirprincipal. The collection events already had anactor, which readadminfor the bootstrap token and for every super-admin session; it now readsadmin_tokenoruser:<account id>, and the credential ID is as before.credential_deniedkeepscredential_idand adds anactorthat equals it. The audit log is only appended to, so lines written by an earlier version keep their form: collection events with anactorofadmin, the others with noactor. Update audit queries that match anactorofadminso that they also match the new forms;principalis unchanged. -
Tools. The line caps above apply to
vlite-mcp,vlite-shellandvlite-import; input that fits the engine's limits is unaffected. The tool list ofvlite-mcpis unchanged. -
Rust.
KvView::visit_atandKvRefare new public items invlite::kv.KvRefis#[non_exhaustive]: read its fields; only the library builds one, and a later release may add fields.KvView::listandlist_atreturn the same entries as before. -
Memory limits. The first-slice refusals and error codes are unchanged except for the ones listed above; every refusal and its
details.featureis in Agent memory (REST). - Checks run. The integrated tree passed the agent-memory live end-to-end run (no failures), the memory downgrade check, a key-value concurrency oracle (more than 100,000 operations, no violations) and a REST differential between v0.7.0 and the tree, which found only the intended differences: the dashboard assets, the new metric, the audit actor and the
ttl_msminimum of 1. A rollback from 0.7.1 to 0.7.0 on the same database file and admin directory was tested on live-like data (tenants, credentials, accounts, graphs, key-value entries and the audit log): the 0.7.0 server started, served everything 0.7.1 had written and showed no error beyond the behaviors listed in this document.
Not included in this release
These are not available, and you should not rely on them.
-
Compact and float16 vector storage and compact graph storage. Internal work that nothing activates: Float32 stays the only storage precision and production graph storage is unchanged. It moved to 0.7.2.
-
Agent-memory facts and erasure jobs.
facts/query,facts/correct,erasures/getanderasures/resumeanswer 409memory_capability_unavailablewithdetails.feature, andforgetby series, entity, session or scope is refused the same way.forgetby ID is logical deletion, not secure erasure. - Approximate recall.
mode: approximateanswers 422memory_bounded_plan_unsupported: no approximate index is built for a binding, and none is built lazily. -
Leases and a fencing-token ledger. This is a design only and is not implemented. Key-value versions are not such a ledger (see Key-value store).
-
A key-value batch. Each call reads, writes or deletes one key, and a list returns one page. There is no multi-key atomic operation.
-
Unchanged from 0.7.0: temporal graph, a Cypher-style query subset and document-to-graph ingestion are not available (see 0.7.0).