Normative force
may became must. GovernDiff marks the obligation as strengthened instead of leaving the reviewer to infer it from colored text.
Open source · MIT · Python 3.10+
GovernDiff finds changes to duties, scope, deadlines, exceptions, and authority across PDF, DOCX, HTML, Markdown, and text—locally, deterministically, and with evidence a person can verify.
把政策文件当代码审查:不上传文档,不依赖大模型。
Incident notification
Vendors may report a security incident within 72 hours.
Incident notification
Vendors must report a security incident within 24 hours.
See the result first
Every finding carries its source evidence, confidence reasons, severity, review state, and a stable fingerprint for CI and waivers.
may became must. GovernDiff marks the obligation as strengthened instead of leaving the reviewer to infer it from colored text.
72 hours became 24 hours. The value pair and aligned source sentence remain attached to the finding.
A stable GVD-* fingerprint connects the CLI, pull-request gate, local Reviewer, exported decision log, and future waiver.
One evidence chain
Parse digital PDF, DOCX, HTML, Markdown, or text. Align clauses through moves, splits, and merges.
Confirm, reject, modify, or waive findings in the packaged loopback-only Reviewer.
Block configured changes while retaining complete JSON, Markdown, HTML, and CSV artifacts.
Built for review, not spectacle
| Capability | Plain diff | Generic LLM | GovernDiff |
|---|---|---|---|
| Clause moves, splits, and merges | Line-level | Prompt-dependent | Deterministic alignment |
| Before/after source evidence | Text context | Often summarized | Page, paragraph, cell, or line |
| Stable finding identity | — | — | GVD-* fingerprints |
| Reproducible AI-off output | Raw diff only | No | Yes |
| Policy text remains local | Usually | Often uploaded | Yes; no telemetry |
| Portable reviewer decisions | — | Service-specific | governdiff-review/1.1 |
Five-minute path
Install the published package from PyPI and generate a self-contained HTML report. Your policy text stays on the machine.
Read the full documentation →$ python -m pip install governdiff
$ governdiff diff \
old-policy.md \
new-policy.md \
--format html --output report.html
✓ 1 change · 2 findings · evidence retained
Deliberate boundaries
Policy CI, without the upload