[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114642":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":14,"starSnapshotCount":14,"syncStatus":13,"lastSyncTime":29,"discoverSource":30},114642,"PatchProof","rainyZhou2\u002FPatchProof","rainyZhou2","Counterexample-first patch verification for Go. Policy-driven plans, isolated execution, reproducible evidence, and signed reports that verify offline.",null,"Go",64,3,2,0,1,36,53,4,67.11,"Apache License 2.0",false,"main",true,[],"2026-11-11 14:54:27","2026-11-23 01:23:11","# PatchProof\n\n\u003Cp align=\"center\">\n  \u003Cstrong>English\u003C\u002Fstrong> | \u003Ca href=\"docs\u002Fzh-CN\u002FREADME.md\">简体中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"go.mod\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGo-1.26%2B-00ADD8?logo=go&amp;logoColor=white\" alt=\"Go 1.26+\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-blue.svg\" alt=\"Apache-2.0\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FrainyZhou2\u002FPatchProof\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FrainyZhou2\u002FPatchProof\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg\" alt=\"CI\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n**Counterexample-first patch verification for Go repositories.**\n\nPatchProof verifies a base→head change against a trusted policy, records the\nevidence that was actually produced, and emits a signed report that can be\nverified offline. A passing verdict means \"the required claims met their stated\nevidence levels within the recorded scope\", not \"the program is correct\".\n\n```mermaid\nflowchart LR\n  A[base → head] --> B[policy + plan]\n  B --> C[isolated execution]\n  C --> D[evidence + counterexamples]\n  D --> E[signed report]\n  E --> F[offline verify]\n```\n\n## Quick start\n\nRequires Go 1.26+ and `git`.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fpatchproof\u002Fpatchproof.git\ncd patchproof\nmake build\n\n# Generate a policy in the repository under test.\nbin\u002Fpatchproof init --dir \u002Fpath\u002Fto\u002Frepo\n\n# Verify locally. Local mode only accepts trusted code.\nbin\u002Fpatchproof verify --repo \u002Fpath\u002Fto\u002Frepo \\\n  --base HEAD~1 --head HEAD --policy \u002Fpath\u002Fto\u002Frepo\u002Fpatchproof.yaml\n```\n\nReview the generated policy (`contracts`, `execution.isolationTier`,\n`protectedPaths`) before relying on it. For the full walkthrough, including\noffline report verification, control-plane submission and Kubernetes, see\n[Getting started](docs\u002Fgetting-started.md).\n\n## Why PatchProof\n\n- **Counterexamples, not just failures.** Differential and fuzz violations\n  carry a CAS-addressed input and observations that can be replayed;\n  deterministic compile\u002Ftest failures carry their logs and exit status.\n- **Evidence you can audit.** Reports have a canonical Merkle manifest and an\n  Ed25519 signature; verification does not need the control plane.\n- **Correct under retries.** PostgreSQL is authoritative, dispatch is\n  at-least-once, and generation fencing prevents stale workers from committing.\n- **Boring infrastructure seams.** PostgreSQL, NATS, S3, Kubernetes and the\n  executor are replaceable adapters behind ports.\n\n## Features\n\n| | |\n|---|---|\n| **Planning** | Policy-driven DAG with claims, contracts, budgets and protected paths. |\n| **Execution** | Local, Kubernetes and remote cluster-agent executors; gVisor\u002FVM isolation. |\n| **Engines** | Go analyze, impact, compile, regression, differential fuzz, native fuzz. |\n| **Extensibility** | In-process engines and out-of-process stdio plugins. |\n| **Artifact IO** | Direct CAS access or brokered stage-in\u002Fexecute\u002Fstage-out with no sandbox credentials. |\n| **Result reuse** | Tenant-scoped action cache for declared hermetic analyze\u002Fimpact\u002Fcompile steps. |\n| **Delivery** | Sharded scheduler, lease renewal, attempt fencing, transactional outbox. |\n| **Reports** | JSON, Markdown and SARIF with offline integrity and policy verification. |\n\n## How it works\n\n1. Submit a repository reference, base\u002Fhead commits, trusted policy and budget.\n2. The control plane freezes snapshots, evaluates policy and plans a step DAG.\n3. The scheduler leases ready steps and dispatches attempts to an executor.\n4. Workers stage inputs, run engines, upload evidence and commit against the\n   current generation.\n5. The proof service validates evidence, computes the verdict, signs the report\n   and serves it for offline verification.\n\nDeep dives: [architecture](docs\u002Farchitecture\u002Foverview.md) ·\n[action cache](docs\u002Farchitecture\u002Faction-cache.md) ·\n[plugins](docs\u002Farchitecture\u002Fplugins.md) ·\n[brokered IO](docs\u002Farchitecture\u002Fbrokered-io.md) ·\n[threat model](docs\u002Fsecurity\u002Fthreat-model.md).\n\n## Documentation\n\n| Start here | |\n|---|---|\n| [Getting started](docs\u002Fgetting-started.md) | Build, local demo, control plane, Kubernetes. |\n| [Verdicts and evidence levels](docs\u002Fconcepts\u002Fverdicts.md) | What each result actually means. |\n| [CLI reference](docs\u002Freference\u002Fcli.md) | Commands, examples and exit codes. |\n| [Configuration](docs\u002Freference\u002Fconfiguration.md) | Environment variables, YAML, plugins, broker and cache. |\n| [API guide](docs\u002Fapi\u002FREADME.md) | Public endpoints and conventions. |\n| [Operations](docs\u002Foperations\u002FREADME.md) | Signals, invariants and runbooks. |\n| [Documentation index](docs\u002FREADME.md) | All English docs. |\n| [中文 README](docs\u002Fzh-CN\u002FREADME.md) | 中文概览与文档入口。 |\n\n## Development\n\n```sh\nmake test        # hermetic unit tests\nmake test-race   # race detector\nmake bench       # benchmarks\nmake verify      # fmt, vet, tests, migration parity, asset checks\n```\n\nPostgreSQL integration tests are environment-gated:\n\n```sh\nPATCHPROOF_TEST_INTEGRATION=1 \\\nPATCHPROOF_TEST_POSTGRES_DSN='postgres:\u002F\u002F...' \\\ngo test .\u002Ftests\u002Fintegration\u002F...\n```\n\nSee [CONTRIBUTING.md](docs\u002FCONTRIBUTING.md) and [tests\u002FREADME.md](tests\u002FREADME.md).\n\n## Deployment\n\n- [Helm chart](deploy\u002Fhelm\u002Fpatchproof): regional control plane, hardening,\n  migrations, NetworkPolicies and ServiceMonitor.\n- [Kustomize](deploy\u002Fkustomize): base and production overlay.\n- [Compose](deploy\u002Fcompose): integration stack; no execution cluster.\n- [Staging](deploy\u002Fstaging): acceptance values, policies and runner.\n\n## Known limitations\n\n- No SMT\u002Fformal proof engine and no Python\u002FC++ engines are bundled.\n- The bundled `go-security` scanner is a deterministic heuristic (TLS verify,\n  shell construction, world-writable files, plaintext HTTP, committed private\n  keys), not a full SAST or dependency CVE scanner.\n- No exactly-once execution and no multi-region active-active; fencing and\n  manual region procedures are the model.\n- No OCI plugin auto-loader or generated gRPC client; plugins must be present in\n  the worker image.\n- Brokered mode requires a broker image, broker workload identity, a\n  ReadWriteOnce volume and an enforced egress-deny policy. The Helm chart\n  creates the execution-namespace default-deny and phase-specific allows.\n- Live staging-cluster acceptance was not executed in this checkout. See the\n  [staging runbook](docs\u002Foperations\u002Frunbooks\u002Fstaging-verification.md).\n\n## Security\n\nReport vulnerabilities through [SECURITY.md](docs\u002FSECURITY.md). Do not open a public\nissue for a suspected vulnerability. `trusted-local` executes code in-process\nand must never be used for untrusted pull requests.\n\n## License\n\nApache-2.0. See [LICENSE](LICENSE) and\n[third_party\u002Flicenses.csv](third_party\u002Flicenses.csv).\n","PatchProof 是一个面向 Go 项目的补丁验证工具，采用反例优先（counterexample-first）策略验证代码变更是否符合安全与正确性策略。其核心功能包括策略驱动的执行计划生成、隔离环境下的确定性执行、可复现的证据采集（如差分模糊测试反例、编译失败日志等），以及带 Ed25519 签名和 Merkle 清单的离线可验证报告。技术特点涵盖多级隔离支持（gVisor\u002FVM）、声明式策略配置（YAML）、CAS 内容寻址存储、租户级动作缓存及插件化引擎扩展。适用于开源库安全审查、CI\u002FCD 中的可信补丁准入、合规性审计及供应链完整性保障等场景。","2026-11-24 04:49:16","CREATED_QUERY"]