ProofFlow

io.github.Hyperion-GPU由 GitHub 账号 Hyperion-GPU 发布v0.1.2更新于 Oct 24, 2026

Audit infrastructure for AI coding agents with evidence-backed review and policy gates.

发布方自己的服务:Proof Holdings

概览

AI 生成的概览

ProofFlow 是面向 AI 编码工作的本地审计账本,记录工作契约、证据、声明与评估,并导出可复核的证明包。

可以做什么
  • 运行代理工作账本:创建工作契约、记录算法决策与成本预算、捕获 git 快照、记录证据与声明、评估完成标准、结束账本并导出证明包
  • 代码审查与问题分诊:分析 git 差异生成带风险评分的证据支撑声明,并把问题文本转成含分诊声明与标签建议的案例
  • 文件审计与整理:扫描目录、为文件建立哈希索引、提取文本用于全文检索并给出整理建议
  • 操作管控:预览、批准、执行与撤销文件系统操作,高风险操作会暂停等待负责人决策
  • 查询与检索:检查后端健康状态、列出案例与操作、检索已存证据并解释风险提示
适用场景
适合 AI 编码代理自主修改代码、而你希望留下可追溯记录的场景:它承诺了什么、改了什么、有哪些证据支撑、完成标准是否达成。也适合需要证据支撑的差异审查、问题分诊或在本地仓库做可审计文件整理的维护者。
运行要求
需要一个可通过 HTTP 访问的本地 ProofFlow 后端(默认 PROOFFLOW_BASE_URL 指定);README 建议用 Docker 或手动启动 Python 后端与前端。MCP 服务器本身是 PyPI 包 proofflow-mcp,以本地 stdio 进程运行。PROOFFLOW_API_KEY 为可选,仅在启用后端鉴权时需要。
安装前请注意
该服务器可扫描本地目录、读取 git 差异,并把文件文本与命令输出作为证据存入本地后端数据库。文件系统操作可能移动或批量修改文件,虽有预览与负责人批准把关,批准前仍应检查待决事项。测试命令执行默认关闭,启用 PROOFFLOW_ENABLE_TEST_COMMANDS 后后端会运行本地命令。若设置 PROOFFLOW_API_KEY,请勿写入共享配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ProofFlow,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ProofFlow

English | 简体中文

Agent Work Ledger for AI coding.

Vibe coding is fast. Blind trust is not enough.

ProofFlow makes AI-generated work reviewable, traceable, and reversible by recording the full chain from work contract to proof packet: contract first, record the algorithm decision, declare the cost budget, snapshot the code state, bind claims to evidence, evaluate done criteria, then export an auditable packet.

Latest release: v0.1.8 - Agent Work Ledger for AI coding

▶ Watch the 72s demo: From AI agent claims to verifiable Proof Packets

Demo asset (deferred): The end-to-end dogfood Demo_Asset GIF and the VSCode_Channel inline audit / Approve Gate screenshots for the v0.1.x dogfood-and-channel-polish milestone are deferred to the next dogfood cycle (no capturable VS Code window in this milestone). Tracked in PLANS.md#vscode-channel-screenshots-deferred-from-v0-1-x-dogfood.

📦 Example Proof Packets: code review · issue triage · agent work ledger · ledger dogfood

Maintainer workflow: docs/maintainer_evidence_workflow.md

Agent Work Ledger guide: docs/agent_work_ledger.md

Ledger Risk Hints: docs/ledger_risk_hints.md

5-minute MCP quickstart: docs/ledger_quickstart_mcp.md

Ledger PR comment template: docs/examples/pr_comment_agent_work_ledger.md

AgentGuard semantic rules: docs/agentguard_semantic_rules.md

[ProofFlow demo thumbnail]

Agent Work Ledger

ProofFlow is not only a PR review helper. It is a local-first ledger for AI coding work. A Ledger Case captures the workflow before, during, and after an agent changes code:

  1. Work Contract - record the objective, repo path, allowed scope, forbidden actions, required tests, done criteria, evidence requirements, algorithm requirements, and cost budget.
  2. Algorithm Decision - record the selected approach, rationale, alternatives, invariants, and forbidden approaches before implementation.
  3. Cost Budget - declare token, API, GPU, CPU, runtime, or iteration limits before expensive work begins.
  4. Snapshot - capture the git diff, changed files, HEAD SHA, base ref, and diff hash so reviewers know exactly what code state was examined.
  5. Evidence - store command output, test output, diffs, notes, screenshots, or other artifacts as searchable evidence.
  6. Claim - require every agent claim to bind to evidence before it is trusted.
  7. Evaluation - deterministically check required tests, algorithm decision, cost budget, scope boundaries, missing evidence, unaccepted risks, and non-blocking Risk Hints for suspicious routes.
  8. Proof Packet - export the contract, algorithm decision, cost budget, timeline, snapshots, claims, evidence, evaluation, decisions, and remaining risks into markdown.

Main chain: Work Contract -> Algorithm Decision -> Cost Budget -> Snapshot -> Evidence -> Claim -> Evaluation -> Proof Packet. This keeps the core product invariant sharp: no Case, no workflow; no Evidence, no trusted Claim; no done criteria evaluation, no quiet success.

Risk Hints extend the evidence flow without turning ProofFlow into an automatic algorithm judge. They tell the maintainer when the recorded route may be wrong or too expensive, such as regeneration where mapping was required, budget overrun metadata, or tests that prove output but not method.

See docs/agent_work_ledger.md for the full architecture and evaluation model, or docs/ledger_quickstart_mcp.md to run the full MCP flow.

ProofFlow Reviewed ProofFlow

ProofFlow v0.1.6 was dogfooded on a real repository PR. The GitHub Actions workflow ran AgentGuard, posted a stable PR summary comment, uploaded summary.json, and exported a downloadable Proof Packet.

[ProofFlow AgentGuard review comment for PR #94]

[Backend] [Frontend] [MCP Server] [VS Code Marketplace] [PyPI] [License: MIT]

Problem

AI coding agents (Claude Code, Codex, Copilot Workspace) can modify files, run commands, and make decisions autonomously. But there's no standard way to:

  • Audit what an agent did and why
  • Gate high-risk actions before they execute
  • Prove that a code review actually checked what it claims
  • Undo agent-initiated changes with confidence

ProofFlow solves this by sitting between the agent and the filesystem, creating an evidence graph that links every action to its justification.

Quickstart

Docker (recommended)

Run from the parent directory of the freshly cloned repo. The Push-Location / Pop-Location pair keeps the working directory at the repository root for the docker compose up command and restores it after the block, so this snippet is copy-paste safe in a single PowerShell session.

powershell
git clone https://github.com/Hyperion-GPU/ProofFlow-v0.1.gitPush-Location ProofFlow-v0.1docker compose upPop-Location

Backend: http://localhost:8787 | Frontend: http://localhost:5173

Docker publishes both ports on 127.0.0.1 by default to preserve ProofFlow's localhost trust boundary. For stronger local protection, set an API key before starting:

bash
PROOFFLOW_API_KEY=change-me docker compose up

If you enable backend auth for the Docker frontend, use the same PROOFFLOW_API_KEY value at build time so Vite can embed VITE_PROOFFLOW_API_KEY in the static frontend bundle. AgentGuard test_command execution is disabled by default; set PROOFFLOW_ENABLE_TEST_COMMANDS=true only when you intentionally want the backend to run local test commands during review.

Manual

Start each component from the repository root in a single PowerShell session. Push-Location / Pop-Location keeps the working directory predictable across the backend and frontend blocks; the backend port is fixed to 8787 to match the make dev-backend baseline. npm run dev is a long-running process - run the frontend block in a second PowerShell session if you want to keep the backend uvicorn process visible in the first.

powershell
# BackendPush-Location backendpip install -r requirements.txtpython -m uvicorn proofflow.main:app --port 8787Pop-Location
# Frontend (long-running; recommended in a second PowerShell session)Push-Location frontendnpm cinpm run devPop-Location

MCP Integration (Claude Code / Codex)

bash
pip install proofflow-mcp

Add to your project's .mcp.json:

json
{  "mcpServers": {    "proofflow": {      "command": "proofflow-mcp",      "env": { "PROOFFLOW_BASE_URL": "http://127.0.0.1:8787" }    }  }}

Now your AI agent can keep an Agent Work Ledger, scan files, review code, triage issues, suggest actions, and export audit reports - all with enforced safety gates.

Codex Maintainer Plugin

ProofFlow also includes a repo-local Codex plugin at plugins/proofflow-maintainer. It provides starter prompts and a maintainer-focused skill for:

  • reviewing the current diff with ProofFlow,
  • creating a Proof Packet for a PR,
  • triaging issue text into a ProofFlow Case,
  • keeping an Agent Work Ledger for complex code tasks.

The plugin uses the same local proofflow-mcp server and keeps the backend trust boundary at http://127.0.0.1:8787. See the public-safe Agent Work Ledger example for the expected handoff shape.

Architecture

AI Agent (Claude Code / Codex / Custom)    |    | MCP Protocol (stdio)    vProofFlow MCP Server (23 tools)    |    | HTTP REST API    vProofFlow Backend (FastAPI + SQLite)    |    |--- Agent Work Ledger: Contract > Algorithm > Budget > Snapshot > Evidence > Claim > Evaluation > Packet    |--- Evidence Graph: Cases > Artifacts > Claims > Evidence    |--- Action Pipeline: Preview > Approve > Execute > Undo    |--- Policy Gates: Risk classification > Owner decision    |--- Proof Packets: Exportable markdown audit reports    vLocal Filesystem (scanned files, git repos)

Core Capabilities

Agent Work Ledger

Records complex AI coding work as a first-class Case. The main flow is Work Contract -> Algorithm Decision -> Cost Budget -> Snapshot -> Evidence -> Claim -> Evaluation -> Proof Packet, so maintainers can see what the agent promised, what approach it chose, what cost limits it accepted, what changed, what evidence backs its claims, whether the done criteria were satisfied, and which Risk Hints deserve human review.

Evidence-Backed Code Review (AgentGuard)

Analyzes git diffs, generates risk-scored claims, and links each claim to specific evidence (changed lines, test results). No claim exists without supporting evidence.

File Audit & Organization (LocalProof)

Scans directories, indexes files with SHA-256 hashes, extracts text for full-text search, and suggests organization actions — all tracked in an auditable Case.

Issue Triage

Captures issue text as a first-class Case with source Artifact, deterministic triage Claims, component inference, label suggestions, and Proof Packet export.

Policy Gate Enforcement

High-risk filesystem actions (moves to system paths, bulk operations) are automatically paused at pending_decision status. Requires explicit owner approval before execution.

Safety Invariants

  • No Contract, no Ledger - AI coding work starts with explicit scope and done criteria
  • No Algorithm Decision, no trusted strategy - important approaches must be recorded before implementation
  • No Cost Budget, no expensive workflow - costly operations need declared limits first
  • No Final Snapshot, no Finish - finished ledgers must prove the reviewed repo state
  • No Preview, no Action — destructive operations require two-phase confirmation
  • No Evidence, no Claim — every assertion links to verifiable data
  • No Ready Evaluation, no Quiet Success - failed ledgers finish as finished_with_risks
  • No Undo, no Destructive Action — executed actions carry rollback metadata
  • No Case, no Workflow — all work is tracked in auditable containers

MCP Tool Suite (23 tools)

health · scan · suggest · review · triage_issue · start_work_contract · record_algorithm_decision · record_cost_budget · capture_snapshot · record_evidence · record_claim · evaluate_contract · finish_work_ledger · status · approve_execute · export_packet · search · list_cases · list_actions · undo · decide

explain_risk_hint records an evidence-backed Decision for a Ledger Risk Hint without suppressing the hint.

Technical Stack

LayerTechnologyTests
BackendPython 3.12, FastAPI, SQLite311
FrontendReact 19, TypeScript, Vite25
MCP ServerPython, MCP SDK, httpx44
CIGitHub Actions (PR review + release gates)Audit artifact + PR comment

Security Features

  • Optional API key authentication (PROOFFLOW_API_KEY)
  • Rate limiting (PROOFFLOW_RATE_LIMIT)
  • AgentGuard test command execution is opt-in (PROOFFLOW_ENABLE_TEST_COMMANDS)
  • MCP concurrency guards (PROOFFLOW_MCP_MAX_CONCURRENT)
  • Filesystem action scope restrictions (allowed_roots)
  • CORS locked to localhost origins

Project Status

v0.1.0 — Stable release. All core workflows functional, tested, and documented.

MilestoneStatus
Core evidence graph (Case/Artifact/Claim/Evidence)Done
LocalProof file audit workflowDone
AgentGuard code review workflowDone
Issue triage workflowDone
Policy gate enforcementDone
MCP server for Claude Code/CodexDone
Backup/restore with safety previewDone
Docker deploymentDone
PyPI package (proofflow-mcp)Done

Roadmap

  • Multi-agent coordination (shared Cases across agents)
  • Vector RAG for semantic evidence retrieval
  • GitHub Actions integration (CI-triggered reviews)
  • VS Code extension (Marketplace)
  • Cloud sync option for team workflows
  • Webhook notifications for policy gate decisions

Development

Run from the repository root in a single PowerShell session. Each Push-Location / Pop-Location block restores the working directory back to the repository root, so the python scripts/... smoke tests and scripts/demo_workflow.py below can be pasted in the same session.

powershell
# Run all testsPush-Location backendpython -m pytest          # 311 testsPop-Location
Push-Location frontendnpm run test              # 29 testsPop-Location
Push-Location mcp-serverpip install -e ".[dev]"python -m pytest          # 44 testsPop-Location
# End-to-end smoke test (cwd: repository root)python scripts/mcp_smoke.py --cleanuppython scripts/ledger_mcp_smoke.py --cleanuppython scripts/ledger_risk_hints_smoke.py --cleanuppython scripts/ledger_risk_hints_dogfood_matrix.py --cleanup
# Demo workflow (cwd: repository root)python scripts/demo_workflow.py

Local backend data defaults to backend/data/. For dogfood runs that should not touch repository-local state, set PROOFFLOW_DB_PATH and PROOFFLOW_DATA_DIR to a temporary directory before starting the backend.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

MIT


Built by Hyperion-GPU — making AI agent workflows auditable, safe, and provable.

来源:README.md,提交 b7cc3c3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Proof 集成