
Veris
io.github.vighriday由 GitHub 账号 vighriday 发布v2.1.8更新于 Oct 25, 2026
Behavioral verification intelligence for AI coding agents. 17 MCP tools. Local-first. MIT.
概览
本地 MCP 服务器,为 TypeScript/JavaScript 改动生成行为差异,让 AI 编码助手看清哪些行为变了、有哪些证据支撑。
- 可以做什么
- 分析改动:为仓库构建行为图,并与 git 基线比对,标出新增、删除和函数体被重写的节点与边,每条边附带解析置信度。评估风险与工作流:用启发式风险模型排序受影响区域,并按支付、认证、Webhook 等语义工作流归类。规划验证:生成对抗性探针,按时间预算挑选最高杠杆的检查,并做 what-if-revert 等反事实分析。记录证据:以只追加、哈希链方式保存执行结果并标注信任等级,同时检测跨运行的漂移。报告:导出上手地图和独立 HTML 仪表盘。
- 适用场景
- 适合在代理对 TypeScript 或 JavaScript 仓库做了大范围修改后、评审前或 CI 中使用,用来弄清哪些行为发生变化、其中哪些有验证支撑。也适合希望获得按风险排序的测试建议、而不是再装一个测试运行器或 linter 的团队。
- 运行要求
- 通过 npx 以 stdio 本地进程运行;需要 Node.js,以及有真实历史、可解析基线引用的 git 仓库(CI 中需 fetch-depth 0)。可选环境变量 VERIS_CONFIDENCE_THRESHOLD、VERIS_PLUGINS_DISABLED、VERIS_STATE_DISABLED 用于调整行为。在 npm 12 上,运行历史需要为 better-sqlite3 添加 allowScripts 条目并重新构建。
安装
在 SourceWeft 中
- 打开 控制台中的 Veris,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Veris
veris — Latin, “of truth”
Your agent just changed 40 files.
What actually broke, and was any of it checked?
[CI] [npm] [MIT] [MCP: 17 tools] [No telemetry] [Self-audit: 55 defects published]
We pointed Veris at Veris — it found 55 defects
Every one is published — what broke, why it mattered, the fix, and the test that proves it: docs/internal/BUG_TRACKER.md
The worst three, in our own tool:
It invented baselines. When git was unavailable, Veris built a "before" state from the first 70% of the current graph and reported the comparison as a real behavioral diff. No flag. No warning. A verification tool was fabricating the thing it verified against.
91% of its call edges were guesses.
It matched the trailing name of a call against every declaration sharing that name.
console.log() drew an edge to the project's own Logger.log. Measured on a real
dependency: 2,804 of 3,077 edges pointed at an ambiguous name.
The graded agent could erase its own failures.
Execution results were stored with INSERT OR REPLACE. Post fail, then post
pass, and the failure was gone.
We could have fixed these quietly. Publishing them is the point: a tool that tells you what is unverified has no standing to hide its own unverified claims.
This is also the demo. That is the analysis Veris performs, run on itself.
What Veris is
A behavioral diff for AI-written code, speaking the Model Context Protocol so your agent can ask while it is still working — not after you find out in review.
It answers two questions a line diff cannot:
- What behavior changed? Not which lines — which behaviors, and what reaches them.
- Was any of it actually checked? Published research puts roughly 65% of agent-authored PRs at zero coverage of their own changed lines.
Veris never executes anything. No tests, no sandboxes, no runtime. It reads, models, and tells your agent what is at risk and what evidence exists. Running things stays with the tools that are good at running things.
The 30-second version
Read lines 2 and 4 again — they are the whole philosophy.
Six calls were too ambiguous to resolve, so Veris drew no edge rather than
guessing. The head is marked -dirty because uncommitted changes were included, so
the result is not reproducible from commits alone.
Most tools report only what they found. Veris also reports what it could not determine, because a confident wrong answer is worse than an admitted gap.
Install
As an MCP server — one config block, then restart your client:
17 tools light up in Claude Code, Cursor, or any MCP-compatible agent.
As a CLI:
Needs a git repository with real history. Veris diffs against the merge-base with your base ref. If it cannot establish one, it fails and says why rather than inventing a baseline. In CI:
fetch-depth: 0.
On npm 12, run history needs one extra line. npm 12 no longer runs dependency install scripts by default, so
better-sqlite3never fetches its prebuilt binding. Veris still analyzes, diffs, scores risk and plans verification — only run history and cross-run drift need it. The allowlist is per-project and is not inherited from a dependency, so it has to go in yourpackage.json:Then
npm rebuild better-sqlite3.veris-core doctorreports which mode you are in, and never claims persistence is working when it is not.
How it thinks
The red box is a feature. So is the loop back into coverage.
Three ideas that make it different
1. Every edge declares how certain it is
Most graph tools give you an edge. Veris tells you why it believes the edge:
Anything that must not reason on a guess — a gate, a policy rule — filters for
resolved. Missing edges understate coupling. They never invent it.
2. Evidence is append-only, and knows who said it
The agent posting results is usually the agent being judged. So:
Records are hash-chained. A later pass never overwrites an earlier failure; editing
the database directly breaks the chain and verifyEvidenceChain() reports exactly
where. An agent cannot raise its own assurance by asserting harder.
3. It catches the rewrite that keeps its name
Same name. Same callees. Same graph shape. Every name-and-topology comparison sees
nothing. Veris hashes the normalized body, so this surfaces as a modifiedNode —
while renaming a directory, which used to look like 100% drift, now correctly looks
like nothing at all.
What your agent asks
Probes are concrete, not nudges:
Payments / idempotency — Submit a charge twice with the same idempotency key inside a 500 ms window. Invariant: exactly one ledger entry; the second call returns the first result.
Webhooks / replay — Replay a 24-hour-old signed payload with its original signature. Invariant: rejected by timestamp window even though the signature is valid.
Everything else it does
Honest limits
Stated plainly, so nobody discovers them the hard way.
- A workflow is a label, not a path. Classification is a weighted keyword vote over directory names, imports and symbol names. It does not traverse the call graph. Rate-limiting code that imports Redis lands in Caching. Making workflows real paths is the top roadmap item.
- Coverage is not assurance. It measures how much planned verification has evidence behind it. It is not calibrated against real incidents and does not estimate the probability your code is correct.
- Risk is a heuristic. Good for ranking what to look at first. Not a defect predictor. No ground truth behind it.
- Probes are a curated library — real failure modes, written by hand, selected by domain. Not generated from your code.
- TypeScript and JavaScript only. Python and Go are on the roadmap.
- Some calls can't be resolved. Dynamic dispatch and untyped JS defeat the checker. Those produce no edge, and the count is in the output.
Upgrading from 2.x? 3.0 has real breaking changes — see UPGRADING.md.
Privacy & security
- Local-first. All analysis runs on your machine. No telemetry, ever. Nothing about your code leaves the machine.
- Zero-retention mode —
VERIS_STATE_DISABLED=1. - No network sockets in the analyzer. stdio and the filesystem only.
Veris is usually pointed at repositories you did not write, so repository content is
untrusted input. Plugins execute code from the analyzed repo, so they are off by
default — --allow-plugins opts in, and each plugin's path and SHA-256 is printed
before it runs. There is no sandbox, and SECURITY.md says so plainly
instead of implying otherwise.
Docs
Contributing
The five things that move the needle most:
- Entry-point detection for a framework you know — routes, handlers, queue consumers. This is what turns a workflow from a label into a path.
- Labelled repositories for a classification benchmark. The accuracy claim needs ground truth, not more rules.
- Probe provenance. The shipped probes are good and uncited; one backed by a public postmortem is worth ten that aren't.
- Language adapters — Python, Go.
- Calibration data — what Veris flagged that broke, and what it missed. The second is more valuable.
See CONTRIBUTING.md. Open source, sponsor-supported. No paid tier, no gated features, no open-core bait.
MIT — see LICENSE
来源:README.md,提交 8bec168
工具
0版本历史
1- v2.1.8最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分