Version: 0.1.0. Licensed under the Apache License 2.0; see LICENSE and NOTICE.
An offline citation checker for a structured review of one requirement at one selected commit. It reconciles quoted committed lines, not behavior. Native Git and a small script can reproduce the operation. Patchward Lite verifies that cited or quoted source evidence exists and matches the referenced source/version within the supported scope described in REPORT.md. It does not establish semantic sufficiency, correctness of an agent's conclusion, test validity, production safety, approval to ship, or completeness of evidence. Matching references are not proof that a change works.
Prerequisites: Go 1.22 or later (qualification uses Go 1.23.2), Git 2.47.3, POSIX shell for the demo, trusted complete local SHA-1 repository. No external Go modules. Linux is the qualification target; other platforms and hosts are not qualified.
From the source directory:
GOTOOLCHAIN=local GOPROXY=off go test -count=1 ./...
GOTOOLCHAIN=local GOPROXY=off go vet ./...
GOTOOLCHAIN=local GOPROXY=off go build -trimpath -buildvcs=false -o patchward-lite .
./patchward-lite --version
./patchward-lite --help
sh demo.sh ./patchward-lite
Demo creates and removes a fictional plant inventory repository; it exercises matching and wrong quotes and a matching quote that does not establish the requirement. No model or target execution.
For an optional local installation into your user bin directory (no package manager):
mkdir -p "$HOME/.local/bin"
cp ./patchward-lite "$HOME/.local/bin/patchward-lite"
"$HOME/.local/bin/patchward-lite" --version
Use the full path unless that directory is already on PATH. To uninstall, remove the copied executable with rm "$HOME/.local/bin/patchward-lite"; remove the local build with rm ./patchward-lite. Do not overwrite an unrelated existing executable.
Choose a full commit with git -C REPO rev-parse HEAD, then inspect committed text with git -C REPO show COMMIT:path. Save a UTF-8 report.json with the full commit as revision, the requirement, reviewer assessment, and references with exact lines; see REPORT.md for an example. Use the saved final bytes, not a draft:
./patchward-lite validate REPO FULL_SHA1 report.json > receipt.json
Check the exit code and receipt status/reasons. A receipt is not signed or an acceptance decision. Verify the saved report digest with sha256sum report.json on Linux. Any edit requires a new receipt. Separate narrative, external evidence and run claims are not hashed.
Reports and receipts can contain sensitive quotes; keep them local and share only with authorization. CLI has no intended repository writes, target execution, network or telemetry. It is not a security sandbox; trusted Git binary/configuration and complete local repository are prerequisites. No automatic CI gate. Optional SKILL.md is a generic human/agent template; no host integration or compatibility claimed.
Use GitHub Issues for ordinary questions and bug reports. Do not post confidential reports or source excerpts. See SECURITY.md for private vulnerability reporting and CONTRIBUTING.md for the contribution policy.