AgentVault

docs / concepts

Concepts

Five primitives: spaces, provenance, hybrid search, temporal facts and scoped keys.

Spaces

A space is a shared memory namespace. Everyone signs up with a personal space. Team spaces have members with roles; public spaces can be read by anyone and written by members.

rolereadwritemanage members and settings
owneryesyesyes
editoryesyesno
vieweryesnono

Who wrote what

Every version of a memory stores its source: agent, model, provider, app, plus the user and key behind the request. Send it in the body or as X-AgentVault-Agent, -Model, -Provider and -App headers. When a second agent writes the same fact, the memory isn’t duplicated: it is merged and the second agent is recorded as another writer.

POST /v1/search ranks by three signals and returns each one, so you can see why something matched: semantic similarity from embeddings, keyword match from full-text search, and recency decay. Default weights are semantic 0.6, keyword 0.3, recency 0.1; pass weights to change them per request. POST /v1/recall returns the same hits plus a context string ready for a prompt.

Temporal facts

Give a memory a key (for example deploy.window) and a later write with the same key supersedes it. The old version keeps its valid_from / valid_to and stays in history; every version shares a lineage_id. Query the past with as_of. Forgetting (DELETE) hides a memory but keeps history; ?hard=true erases every version.

Scoped keys

API keys carry grants: a list of spaces, each with read or read + write. A key can never do more than the person who made it, and losing access to a space removes the key’s access too. Secrets are stored as hashes and shown once.