Store where the memory came from
Mark evidence as user-stated, agent-inferred, or third-party, with confidence, provenance, validity, and action relevance.
source + confidence + provenanceHow it works
ContextDB sits between what an agent remembers and what your host lets it do. It evaluates remembered evidence, returns act, ask, or abstain, and stores the reason.
The decision loop
Ordinary recall can ground a conversation. Action recall is stricter. It only returns evidence that passes the active trust policy.
conversation │ ▼ remember → recall for context │ ├── agent prepares a consequential action ▼ recall_for_action │ ├── act trusted evidence is sufficient ├── ask a specific fact needs attestation └── abstain evidence is missing or policy refuses │ ▼ your host enforces the result → decision record
Mark evidence as user-stated, agent-inferred, or third-party, with confidence, provenance, validity, and action relevance.
source + confidence + provenanceThe same memory can ground conversation while remaining ineligible for a booking, refund, or record update.
evidence × policy → outcomeStore the outcome, reason, policy version, evidence IDs, partition, and request ID as one decision object.
decision is a first-class objectDecision trace
A decision record connects the attempted action to the evidence and policy used at that moment. It is designed for debugging and incident review, not as a vague activity log.
Core objects
| Object | What it represents |
|---|---|
| project | One agent deployment with its own keys, policies, and records. |
| user partition | One end-user memory space. The partition key is not authentication. |
| memory | Evidence with source, confidence, provenance, PII annotations, and validity. |
| decision | An act, ask, or abstain outcome stored with its reason and evidence. |
| confirmation | An actor's attestation about a specific fact. Attestation is not objective truth. |
| policy | Versioned rules that determine what evidence is trusted for action. |
Hosted surface
The hosted gateway remains Alpha. Routes whose partition ownership cannot yet be proven are blocked, not quietly exposed.
GET /health
GET /ready
POST /v1/remember
POST /v1/remember_many
POST /v1/recall
POST /v1/recall_for_action
GET|POST /v1/pending_confirmations
blocked in hosted alpha
POST /v1/confirm
POST /v1/forget
POST /mcp
Questions
No. ContextDB returns an advisory decision. Your host must enforce that result before it books, refunds, updates, or calls another system.
No. Confirmation records that an actor attested to a specific fact. It does not prove objective truth.
No. Keep the systems that hold business records and general retrieval. Use ContextDB where remembered evidence can authorize an action.
The SDK and its evals are Apache-2.0 and available now.