
Veracium
io.github.veracium-ai由 GitHub 帳號 veracium-ai 發布v0.16.0更新於 Oct 24, 2026
Provenance-aware memory for AI agents: quarantine, abstention gate, supersession-with-history.
概覽
為助理提供持久的每位使用者記憶,追蹤每項事實的來源、隔離第三方聲明,並將被取代的值保留為歷史。
- 可以做什麼
- Veracium 是面向代理系統的來源感知記憶層,透過 MCP 提供 remember、recall、answer 與 maintain 工具。實體事實以關聯邊儲存,互動歷史以帶日期的片段儲存,並據此編譯出快取的 wiki 檢視供檢索使用。來自電子郵件等第三方內容會存成 third_party_claim 邊,不會成為使用者事實;功能性事實只保留一個目前值,舊值則留存為歷史。recall 會回傳帶來源標記的脈絡,被隔離的聲明以「不可斷言」方式呈現,而非當成事實。
- 適用情境
- 當助理需要長期的每位使用者記憶,且不應把電子郵件、文件等第三方內容中的說法當成事實吸收時,適合採用。它適合需要回答使用者先前說過什麼、某個值過去是什麼的代理,也適合能在自身提示或動作路徑中取用來源標記的宿主。
- 執行需求
- 以本機 stdio 程序執行,從 PyPI 安裝(veracium,伺服器需 mcp 額外套件)。需要 Python 與 SQLite 檔案路徑,可透過 VERACIUM_DB_PATH 設定,預設為 veracium.db。參考用 Anthropic 提供者需要 ANTHROPIC_API_KEY,但也可改傳任意 Complete 可呼叫物件,包括其他提供者或本機模型的包裝。VERACIUM_USER 用於工具呼叫未提供使用者 id 時設定預設值。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Veracium,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Veracium
[tests] [PyPI] [Python] [license]
Veracium is a provenance-aware memory plug-in for agentic systems — durable, per-user memory that resists the injection and confabulation failures that plague naive agent memory. Provenance means every fact tracks who said it: a claim from an email your agent merely read can never become a "fact" it asserts. It remembers what the user said, past interactions, and what worked — and it remembers where each of those came from.
Veracium is the production distillation of an evaluation-driven research project
(agent-memory): every design choice below traces to a measured finding, and the
research's synthetic-corpus harness is reused as the regression suite.
Research: the evaluation instrument behind those findings — a longitudinal benchmark for agent memory — is described in Q. Spencer, "Ground Truth First: A Longitudinal Evaluation Instrument for Agent Memory, and the Tenure Crossover in Memory-Architecture Rankings" (arXiv:2607.21962, 2026).
Why it's shaped this way
- Typed graph + dated episodes are the store of record. Entity facts live as relational edges (with unforgeable provenance); interaction history lives as dated episodes. A curated "wiki" view is compiled from them and cached — never the source of truth. (The layered design won on both short and 9-week horizons; flat stores each failed one regime.)
- Supersession, never erasure. Single-valued facts (employer, location, deadline) keep one current value with the prior value retained as history — "what did X used to be?" stays answerable. Facts that can hold several values at once (preferences, measurements, health states) accumulate instead. (The category commercial memory systems handle worst; Veracium's strongest.)
- Representation is a security control. Third-party claims (received email,
external docs) are quarantined structurally — stored as
third_party_claimedges with the claimant as subject, never as user facts. Content-type quarantine catches obligation/debt/renewal claims regardless of how plausible they look. (Held against a full plausibility ladder incl. contact-impersonation.) What this is, and is not: the store governs retention, retrieval, description and recommendation — what it will say and how it labels it. It does not instantiate, authorize or execute anything; those belong to the host's harness. Without an exclusive harness path that consumes the labels, Veracium's trust classes are advisory labelling, not enforcement. - Bring your own model. Veracium never owns your API keys or model choice; it
calls a
Completecallable you supply. A reference Anthropic provider ships in the box. - Embedded by default. Zero external services: one SQLite file. Swap in
Neo4j/Postgres later via the
Storeinterface.
Install
Python and SQLite requirement. Veracium needs Python 3.14 or newer. It measures your Python's SQLite build on every open instead of checking it against a list: the build must pass the feature probes and reproduce every accepted schema version exactly. A build that passes opens as
verified, with oneUnattestedBuildWarningper process; one the project's CI has also attested opens with no warning. The CI has attested 22 builds: SQLite 3.34.1 to 3.54.1 on Linux (glibc and musl, x86_64 and arm64) and macOS (arm64), from uv, python.org, Homebrew, conda-forge, setup-python, deadsnakes, pyenv, the official Docker images and the distributions' own Pythons. No Windows build is attested yet. A build that fails is refused (unsupported-sqlite, naming the first failing check), for a new store and an existing one alike.veracium doctorreports your build's status and lists the attested builds, with or without a store. Ubuntu 24.04's own system Python is 3.12, below the floor:pipthere installs 0.26.1, the last release that supports it.
Extras: [mcp] adds the MCP server, [dev] adds pytest. The core alone depends
only on pydantic. To work from source instead:
Links: docs · veracium.ai · PyPI
Use (library)
No Anthropic API key? AnthropicComplete is just a convenience — Veracium calls any
Complete callable you supply. To run without SDK/key setup, wrap a client you
already have; examples/claude_cli_provider.py wraps the claude CLI as a
drop-in provider (from claude_cli_provider import ClaudeCLIComplete), and
examples/openai_provider.py wraps any OpenAI-compatible chat-completions API
(OpenAI itself, vLLM, Ollama's /v1 endpoint) via OpenAIComplete — point it
at a local server with OpenAIComplete(base_url=...) and override models with
whatever model name your server serves.
Use (MCP)
veracium-mcp exposes remember / recall / answer / maintain tools to any
MCP-compatible agent (Claude Desktop/Code, others) with no host-side Python. See
docs/mcp.md for the config JSON and tool reference.
Documentation
Hosted docs: veracium-ai.github.io/Veracium
- examples/demo.ipynb — the scam-email injection demo, runnable end to end (open in Colab).
- examples/langchain_memory.py — Veracium as the long-term memory layer of a LangChain chat app (session-keyed hybrid: LangChain buffers recent turns, Veracium holds durable facts with provenance and quarantine; your existing LangChain model powers both sides).
- docs/concepts.md — the mental model: edges vs episodes vs the compiled wiki, provenance & authorship, quarantine, the abstention gate, lifecycle.
- docs/recipes.md — short copy-paste examples, one per capability (quarantine, mixed provenance, budgeted recall, portability, feedback verbs, audit, local models).
- docs/api.md — the public API:
Memory,MemoryConfig,EvidenceAuthor, providing your own LLM callable or store. - docs/mcp.md — running and registering the MCP server.
- docs/design-rationale.md — why there's no
update()/delete(), no LLM-free extraction, no TTL purging — and what's genuinely on the roadmap. - docs/telemetry.md — the opt-in, anonymous, content-free usage statistics (off by default).
- docs/diagnostics.md — opt-in error reporting: local-first error log, consented + redacted send.
- ROADMAP.md · CHANGELOG.md
Status
The validated layered design is implemented, tested (44 offline tests, plus opt-in live tiers: the acceptance eval and a real-corpus robustness harness), and passes its own research-claim bar (5/5, 0 injection asserts). Roadmap v0.1–v0.7 complete, plus opt-in telemetry, a self-check, consented error reporting, and an operation audit log. See ROADMAP.md.
License
MIT
來源:README.md,提交 67bbba6
工具
0版本歷史
1- v0.16.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分