proofspec

proofspec

Enables defining and verifying evidence contracts for claims in READMEs, releases, or product pages using constrained verifiers and generating hash-chained receipts and reports.

Category
访问服务器

README

Proofspec

Claims are cheap. Proofspec makes them executable.

Proofspec turns the important statements in a README, release, product page, or agent completion message into versioned evidence contracts. It checks those contracts with constrained verifiers, preserves hash-chained receipts, models dependencies between claims, and fails CI when required claims are not actually verified.

CI License: MIT Node.js 20+

README / release / product claim
              │
              ▼
       proofspec.json
   policies + dependencies
              │
              ▼
  constrained observations
  file · HTTP · Git · npm · manual
              │
              ▼
 receipts + CI gate + reviewer reports
 JSON · Markdown · HTML · Mermaid · SARIF

Proofspec does not declare broad truth. A satisfied verifier proves only the observation you configured. Unknown stays unknown; manual stays manual; a dependency that is not verified blocks the claims built on top of it.

Why this exists

README linters check structure. Link checkers check URLs. Transcript auditors compare an agent's words with a repository after the fact. Proofspec occupies a different layer: the project author defines the evidence contract that must travel with a public claim, and the same contract runs locally, in CI, through TypeScript, or as an MCP tool.

Useful examples:

  • “Version 1.4.0 is public on npm” → registry version check.
  • “The release page is live” → public HTTP status/content checks.
  • “This artifact contains 358 passing tests” → bounded JSON evidence plus an explicit limitation that the manifest does not replay the tests.
  • “The published commit is tagged” → Git tag and remote-containment checks.
  • “A human approved the usability” → manual evidence that remains unknown, never silently upgraded to external proof.

Quick start

Requires Node.js 20 or newer.

The v0.1.0 source release is available now. Until the npm registry publication is visible, install the smoke-tested release artifact directly from GitHub:

npm install --save-dev https://github.com/christian140903-sudo/proofspec/releases/download/v0.1.0/proofspec-0.1.0.tgz
npx proofspec init
npx proofspec check

Or run the included example from a clone:

npm install
npm test
node dist/src/index.js check examples/proofspec.json

The example verifies three required claims, reports one honest informational unknown, writes five report formats, and still passes the default gate. Add --strict to require warning and info claims too.

A specification

{
  "$schema": "https://raw.githubusercontent.com/christian140903-sudo/proofspec/main/proofspec.schema.json",
  "schemaVersion": 1,
  "project": { "name": "example" },
  "claims": [
    {
      "id": "release-visible",
      "statement": "example 1.0.0 is public on npm.",
      "severity": "error",
      "policy": { "mode": "all" },
      "evidence": [
        {
          "id": "npm-version",
          "verifier": {
            "kind": "npm",
            "package": "example",
            "check": { "op": "version_exists", "version": "1.0.0" }
          }
        }
      ],
      "limitations": ["Registry visibility does not establish package quality."]
    }
  ]
}

Editor validation is provided by proofspec.schema.json. Runtime validation additionally rejects duplicate IDs, unknown dependencies, impossible thresholds, and dependency cycles.

Evidence policies and claim graphs

Each claim supports one evidence policy:

Policy Verified when Honest unknown when
all every check is satisfied none failed, at least one is unknown
any at least one check is satisfied none satisfied, at least one is unknown
at_least the threshold is satisfied unknown checks could still reach it

dependsOn creates a directed claim graph. A directly verified claim becomes blocked when any dependency is not effectively verified. The configuration validator rejects cycles.

The default gate fails only non-verified error claims. --strict requires every claim, regardless of severity, to be verified.

Verifiers

Proofspec inherits the constrained verifier surface from postcondition-mcp:

Kind Bounded observations
file existence, absence, SHA-256, text, JSON pointer, size
http GET status, text, JSON pointer; private targets blocked
git branch, clean state, head, tag, remote commit containment
npm version visibility and dist-tags
manual explicit instructions; result remains unknown

There is intentionally no arbitrary shell verifier and no custom authorization header surface.

Reports

proofspec validate [config]
proofspec check [config] --formats json,markdown,html,mermaid,sarif
proofspec explain release-visible [config]
proofspec check [config] --out artifacts/proofspec
  • JSON is the canonical machine-readable run report.
  • Markdown is designed for release notes and human review.
  • HTML is a standalone, escaped, no-index dashboard.
  • Mermaid visualizes claim dependencies.
  • SARIF exposes non-verified claims to code-scanning interfaces.

Every evidence check creates a Postcondition receipt. The local SQLite ledger is hash chained and revalidated at the end of each run. Reports include a stable digest and redact the configured project-root prefix from observed values.

The repository also checks its own public surface in CI. That self-spec deliberately leaves the subjective usefulness claim as informational and unknown.

MCP server

From a clone, build once and point the MCP client at the absolute entry path:

{
  "mcpServers": {
    "proofspec": {
      "command": "node",
      "args": ["/absolute/path/to/proofspec/dist/src/index.js", "serve"],
      "env": { "PROOFSPEC_CONFIG": "/absolute/path/to/proofspec.json" }
    }
  }
}

The stdio server exposes:

  • proofspec_validate
  • proofspec_check
  • proofspec_explain
  • proofspec_render
  • resources proofspec://schema and proofspec://example
  • prompt audit-public-claims

TypeScript API

import { runProofspec, renderReport } from 'proofspec';

const report = await runProofspec('./proofspec.json');
console.log(report.summary.gatePassed);
console.log(renderReport(report, 'markdown'));

CI

- run: npm install --no-save https://github.com/christian140903-sudo/proofspec/releases/download/v0.1.0/proofspec-0.1.0.tgz
- run: npx proofspec check proofspec.json

Commit the specification, not the generated .proofspec/ ledger. Upload the reports as build artifacts if reviewers need them.

Trust boundary

Proofspec is a claim-evidence system, not a certification authority. A local hash chain detects receipt modification but is not an externally signed transparency log. Evidence can be precise while the prose around it is still misleading, which is why limitations are first-class fields and human review still matters.

Read the full security model, limitations, configuration reference, and project origin.

Development

npm install
npm test
npm run test:coverage
npm run smoke:pack

MIT licensed. Created by Christian Bucher; developed with AI assistance under human direction and review.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选