Dependency Update Verifier
Compares supplied Python dependency pins and verification evidence, and reports uncertainty explicitly.
- Input
- Before and after pin files, with optional release notes and evidence
- Output
- A comparison report that remains REVIEW_REQUIRED unless the bounded evidence meets its verification conditions.
What it does
- Separates direct, transitive, and unknown changes when evidence supports it
- Can run a bounded comparison workflow with local wheels and tests when explicitly requested
- Does not call a dependency update safe from missing or untrusted evidence
Overview
Dependency Update Verifier is a local Python 3.11+ CLI that diffs before-and-after pip exact-pin requirement files and surfaces version bumps alongside hashed release-note migration, security, or compatibility signals. It produces a deterministic JSON review verdict without installing packages, resolving transitive graphs, or accessing the network.
When to use it
- Reviewing pip exact-pin requirement changes before approving a dependency upgrade pull request.
- Scanning supplied release notes for breaking-change, migration, or security cues with line-number and SHA-256 provenance.
- Requiring explicit candidate-bound verification evidence before treating a version bump as ready to deploy.
Compare two sets of dependency pins
Needs Python 3.11 or newer and only the standard library. Run from the package directory. Paths are relative to the repository root you select.
python3 tool.py --root ./repo --before before.txt --after after.txtSample output
Abridged output from the 0.1.0 package: one pin moved from 1.0 to 2.0, with release notes passed through --notes. Note text is reported as line numbers and hashes.
{
"status": "REVIEW_REQUIRED",
"changes": [
{
"name": "demo",
"before": {
"version": "1.0"
},
"after": {
"version": "2.0"
}
}
],
"release_note_signals": [
{
"line": 1,
"sha256": "b39ec18c395d..."
}
],
"reasons": [
"Missing candidate-bound verification evidence.",
"Release notes contain migration, security or compatibility signals requiring review."
]
}Exit codes and limits
- Valid inspection exits 0 and input errors exit 2; exit 0 does not mean the update is safe to deploy.
- Supports pip exact-pin text files, not arbitrary lock formats or dependency resolution.
- Inputs must be regular UTF-8 files of 2 MB or less inside the selected root.
Questions
Does exit code 0 mean a dependency update is safe to deploy?
No. Exit 0 only means the files were valid and the comparison completed. Always read the status (such as REVIEW_REQUIRED) and reasons in the JSON output.
Which dependency file formats are supported?
It supports pip exact-pin text files (regular UTF-8 files up to 2 MB inside the selected root). Arbitrary lockfile formats and full dependency resolution are not supported.
Why are release notes reported as line numbers and SHA-256 hashes?
Reporting line numbers and SHA-256 digests lets you trace exact migration, security, or compatibility signals back to the supplied release-note file without duplicating arbitrary text in the report.
Does Dependency Update Verifier install packages or call PyPI?
No. It runs offline using Python 3.11+ and the standard library only.