io.github.elwsls/verifiable-claim-seed
verifiable-claim-seed
機械検証可能なクレーム契約 + ゼロ依存ゲート + 実サンプル。 再現可能≠検証可能: repro+frozen は内部整合性を証明する; 外部の正しさはアンカーが担う。 エージェント優先: このファイルの前に
ai-catalog.jsonを読んで、機械可読なマニフェストを取得してください。
mcp-name: io.github.elwsls/verifiable-claim-seed
install
pip install verifiable-claim-seed # zero dependencies, Python stdlib only
verify-claim self-test # prove the gate works in this environmentまたはリポジトリをクローンして、ゲートを直接実行します:
python3 verifiable_claim_seed/verify_claim.py self-testRelated MCP server: judgment-pack-runtime
entrypoints
役割 | パス |
契約 |
|
ゲート |
|
実サンプル·宇宙 |
|
実サンプル·健康 |
|
凍結データ |
|
ソーススナップショット |
|
再現スクリプト |
|
MCPサーバー |
|
MCPエージェントシミュレーション |
|
MCPレジストリマニフェスト |
|
展示·概念 |
|
展示·プレスリリース |
|
展示·学術声明 |
|
verify
verify-claim self-test # pip 安装后
verify-claim verify <claim.json> [--report out.json]
# 仓库内直接跑:
python3 verifiable_claim_seed/verify_claim.py self-test終了コード:0 全パス / 1 ハード失敗(構造/形式/宣言が参照するファイルの欠落) / 2 使用法・環境(コマンドライン引数/検証対象の宣言ファイルの欠落) / 3 証拠契約違反(ハッシュ不一致/再現不一致)。
パスセマンティクス:宣言内の
data//scripts/パスはパッケージルート(ゲートスクリプトの所在ディレクトリ)を基準に解決され、宣言 JSON を基準にしません。外部からコピーした単一ファイルの宣言を検証する前に、完全なリポジトリ構造を維持するか、宣言全体をverifiable_claim_seed/claims/に戻してください。 text-quote アンカーはバイトスナップショットを伴う:anchor.mode=text-quoteはquote + locator + snapshot + snapshot_sha256(ソーススナップショットファイルパス + 64ビットハッシュ)を必須とします。ゲートはスナップショットのハッシュをバイト単位で検証し、スナップショットテキストから「組版文字の正規化 + 空白除去」によるコンパクト比較を行います——一字一句の引用文が凍結スナップショットに実際に存在する必要があります(HTMLエンティティ/レンダリング空白は誤検知しません)。機械が検証するのは「引用文がこのスナップショット内にある」ことです。スナップショットが実際に現実のソースであるかは、依然として人間/AIによる検証が必要です。 repro.script は Python:repro.scriptはpython3で実行されます(subprocess、120秒タイムアウト)——スクリプトは Python でなければなりません。サンドボックスなし:ゲートは隔離せず、パスはパッケージルートを越えることができ、呼び出し元の権限で実行されます。セキュリティは完全に「信頼する宣言のみを検証する」ことに依存します。 ゼロ依存の説明:verify_claim.pyは実際の検証器(純粋な stdlib、jsonschema ライブラリに依存しない)です。schema/*.jsonは契約仕様です——両者はセルフテストの「schema-gate 契約同期」例によって機械的に検証され、ドリフトしません。anchor.sha256 も同様に固定されています:リポジトリ内のファイルを指す場合、バイト単位で検証されます(不一致は rc3)。 セキュリティ注意:verifyは宣言内のrepro.scriptを実際に実行します。信頼する宣言のみを検証してください。信頼できないソースの宣言を検証することは、その宣言が指定する任意のコードをローカルマシンで実行することに等しいです。 設計上の境界:ゲートは「スクリプトが宣言どおりに出力するか」を検証し、「スクリプトの計算が正しいか」は検証しません——偽造したrepro.scriptが正しいハッシュと期待値を出力すれば rc0 を通過できます。完全性は凍結された入力バイト(anchor/frozen)と宣言の自己整合性に由来し、数学ではありません。「信頼する宣言のみを検証する」ことは、したがってセキュリティの前提であり、飾りではありません。
MCP server
verifiable-claim-mcp(またはレジストリ起動エイリアス verifiable-claim-seed)は3つのツールを公開します(stdio、ゼロ依存):
self_test— ゲート自己検査、PASS/FAIL + ケース数validate— 構造 + ハッシュ検査、スクリプトを実行しない(信頼できない宣言にはこれを使用)verify— 完全検証、明示的にallow_execution=trueが必要(宣言内の repro.script、つまり任意のコードを実行します);このフラグがない場合はすべて拒否
MCPレジストリ:server.json(io.github.elwsls/verifiable-claim-seed、PyPI/stdio)。
Claude Code 接続(pip install 後)——プロジェクトルートに .mcp.json を置きます(リポジトリ内にサンプルあり)、新しいセッションで3つのツールが自動的に読み込まれます:
{ "mcpServers": { "verifiable-claim-seed": { "command": "python3", "args": ["verifiable_claim_seed/mcp_server.py"] } } }uvx verifiable-claim-seed も使用できます(PyPI リリース後)。未知のエージェントによるエンドツーエンド検証済み:3つのツールを発見 → validate は実行ゼロ → verify は allow_execution がないと拒否 → フラグ付きで通過。
ライセンス: MIT。ゼロ依存(Python stdlib)。
Available Tools
3 toolsself_testA
Run the gate self-test: proves the tool works in this environment. Returns passed/exit_code/output.
Inputs: no named parameters.
validateB
Check a claim's structure and anchor/frozen hashes WITHOUT executing any code. Safe for untrusted claims. Args: claim (claim JSON text) or claim_path (absolute file path).
Inputs: claim, claim_path.
verifyA
Full verification of a claim, INCLUDING executing its repro.script as arbitrary code with no sandbox. REQUIRES allow_execution=true; otherwise refused. Only call this on claims you trust. Args: claim or claim_path, allow_execution.
Inputs: allow_execution (required), claim, claim_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: self_test for environment validation, validate for safe structural checks, and verify for full execution-based verification. The descriptions clearly differentiate the safe versus risky operations, leaving no ambiguity.
Tool names are single verbs (validate, verify) while self_test is a compound, creating a slight inconsistency. However, all names are clear action-oriented verbs and follow a predictable style, making the deviation minor.
Three tools is well-scoped for a specialized verification server. Each tool serves a necessary function without redundancy or excess, fitting the server's narrow purpose perfectly.
The toolset covers the core verification lifecycle: environment testing, safe validation, and full execution-based verification. A minor gap is the absence of any claim creation or modification tools, but these may be out of scope for a verification-focused server.
Related MCP Connectors
Validate JSON, YAML, XML and CSV with exact line/column errors and silent-corruption warnings.
Signed deterministic checks for supplied JSON invoices, OpenAPI API contracts and JSON events.
Validate ZUGFeRD, Factur-X, and XRechnung XML invoices (EN 16931, BR-DE) and German Leitweg-IDs.
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables defining and verifying evidence contracts for claims in READMEs, releases, or product pages using constrained verifiers and generating hash-chained receipts and reports.4MIT
- AlicenseNot gradedqualityAmaintenanceServes offline document validation and evaluation operations of the Judgment Pack Specification to MCP clients over stdio, enabling agents to validate and evaluate JPS documents as tool calls. Supports conformance validation, experimental evaluation with disposition and error classes, and corpus testing.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to locally verify nomue Protocol Release 1 Welch Records, performing scoped structural, digest, admissibility, computability, and two-sided Welch recomputation checks over stdio without requiring accounts, API keys, or network access.51 npmApache 2.0

cwi-mcp-serverofficial
AlicenseAqualityBmaintenanceProvides read-only access to CWI's trust infrastructure, enabling Gear Ledger provenance queries, agent trust scoring via the Verdict Engine, and NEEDLE DROP ledger hash-chain verification over stdio.7MIT