Expand description
§tact-memory
tact-memory provides bounded memory storage and retrieval for local agents and shared teams. It
defines a common asynchronous store contract, a SQLite-backed local store, an authenticated remote
client and server protocol, and a Nanocodex memory tool.
The crate exposes four integration boundaries:
MemoryStoredefines ordinary local and remote operations over bounded memory records.LocalMemoryStorepersists the schema-v1 local format, whileSelectedMemoryStorelets an application choose one local or remote backend for a runtime.RemoteMemoryClientandMemoryServershare versioned protocol types and preserve author namespaces across authenticated operations.MemoryToolexposes explicit scan, read, put, and delete operations to Nanocodex sessions under an application-provided mutation authority.
Feature flags separate the local store, remote client, server, and Nanocodex tool integrations.
Default features enable the complete native client, local, server, and tool surface; server-only
deployments can select server without native-only dependencies.
Implementations enforce record, query, content, and aggregate corpus bounds. Client-side storage boundaries reject secret-like content before mutation and suppress pre-existing unsafe records before use. Server backends remain storage-policy agnostic.
See the Tact memory guide for backend selection, protocol, authentication, transfer, and deployment contracts.
Re-exports§
pub use server::protocol::RemoteRole;
Modules§
- server
- Reusable authenticated server for shared Tact memory.
Structs§
- Local
Memory Store - Concrete private SQLite memory store.
- Memory
Access - Negotiated access information for the active backend.
- Memory
Candidate - Ranked, bounded preview returned by a memory scan.
- Memory
Import Report - Counts produced while importing a remote snapshot into local storage.
- Memory
Key - Stable identity and optimistic-concurrency version of a memory.
- Memory
Limits - Resource limits enforced by memory stores and remote-response validation.
- Memory
Record - Complete durable state of a memory.
- Memory
Scan - Result of a semantic memory scan.
- Memory
Tool - Nanocodex tool exposing bounded memory operations.
- Remote
Memory Client - Authenticated HTTP implementation of
MemoryStore. - Remote
Token - Secret bearer token for a remote memory service.
Enums§
- Memory
Error - Failure from local storage, remote transport, validation, or optimistic concurrency.
- Memory
Source - Backend selected by a
crate::MemoryStore. - Remote
Client Error - Failure while configuring or calling a remote memory service.
- Selected
Memory Store - Runtime-selected local-or-remote memory backend.
Constants§
- VERSION
- Incompatible remote-memory protocol generation.
Traits§
- Memory
Store - Ordinary operations shared by local and authenticated remote memory backends.
- Mutation
Authorizer - Authorizes mutations for one agent session.
Functions§
- normalize_
identity - Normalizes authored content for backend-enforced duplicate detection.