Skip to main content
Glama
io.github.elwsls/verifiable-claim-seed

io.github.elwsls/verifiable-claim-seed

by elwsls

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-test

Related MCP server: judgment-pack-runtime

entrypoints

役割

パス

契約

verifiable_claim_seed/schema/verifiable-claim-v1.schema.json

ゲート

verifiable_claim_seed/verify_claim.py

実サンプル·宇宙

verifiable_claim_seed/claims/VC-20260815-001.json(ISS軌道高度、derived+frozen+repro)

実サンプル·健康

verifiable_claim_seed/claims/VC-20260823-001.json(1万歩の起源、text-quoteアンカー)· verifiable_claim_seed/claims/VC-20260823-002.json(歩数-死亡の平坦化、text-quoteアンカー)

凍結データ

verifiable_claim_seed/data/iss_20260814.tle

ソーススナップショット

verifiable_claim_seed/data/wcrf-10000-steps-20260823.html(001ソーススナップショット)· verifiable_claim_seed/data/pmc-9289978-20260823.html(002ソーススナップショット)

再現スクリプト

verifiable_claim_seed/scripts/verify_iss.py

MCPサーバー

verifiable_claim_seed/mcp_server.py(stdio、コマンド verifiable-claim-mcp / verifiable-claim-seed)

MCPエージェントシミュレーション

verifiable_claim_seed/mcp_agent_sim.py(未知のエージェントが完全なMCPチェーンを辿るシミュレーション、人手による検証ゼロ)

MCPレジストリマニフェスト

server.json(io.github.elwsls/verifiable-claim-seed、PyPI/stdio)

展示·概念

docs/news-appendix.md(人間のサンプル、非機械声明——verify_tier は schema tier から独立しており、ゲートには関与しない)

展示·プレスリリース

docs/news-release-10000-steps.md(人間のサンプル·プレスリリース、非機械声明、VC-20260823-001/002 に対応)

展示·学術声明

docs/academic-claim-10000-steps.md(人間のサンプル·学術声明、非機械声明、VC-20260823-001/002 に対応)

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 tools
self_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

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Serves 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.
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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 npm
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Provides 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.
      7
      MIT