|
| 1 | +# Reviewer path |
| 2 | + |
| 3 | +Use this page as the ordered review route for `sbom-diff-and-risk`. It is |
| 4 | +designed to make one thing clear at every step: what evidence you are checking, |
| 5 | +where to find it, and what it does not prove. |
| 6 | + |
| 7 | +## First choose the review question |
| 8 | + |
| 9 | +| Review question | Start here | Good stopping point | |
| 10 | +| --- | --- | --- | |
| 11 | +| What is this tool? | [30-second orientation](#30-second-orientation) | You can state the tool's scope and non-claims. | |
| 12 | +| What artifacts does it produce? | [5-minute artifact review](#5-minute-artifact-review) | You can point to JSON, summary, policy, Markdown, and SARIF examples. | |
| 13 | +| Can the examples be reproduced locally? | [15-minute reproduction check](#15-minute-reproduction-check) | `regenerate-example-artifacts.py --check` passes without enrichment. | |
| 14 | +| Can the released tool artifacts be verified? | [Release evidence](#release-evidence) | You can choose the correct GitHub release, checksum, or attestation path. | |
| 15 | +| Is this enough for a full review? | [Deep review](#deep-review) | You have followed the reproducible checklist in the evidence pack. | |
| 16 | + |
| 17 | +## 30-second orientation |
| 18 | + |
| 19 | +Read: |
| 20 | + |
| 21 | +- [reviewer-brief.md](reviewer-brief.md) |
| 22 | +- the first screen of the [tool README](../README.md) |
| 23 | + |
| 24 | +Confirm these claims only: |
| 25 | + |
| 26 | +- local, deterministic SBOM/dependency diff CLI |
| 27 | +- supported inputs: CycloneDX JSON, SPDX JSON, `requirements.txt`, and |
| 28 | + conservative `pyproject.toml` |
| 29 | +- output artifacts: JSON, Markdown, SARIF, `summary.json`, and `policy.json` |
| 30 | +- local policy checks with reviewer-facing decision explanation fields |
| 31 | +- optional PyPI provenance and OpenSSF Scorecard enrichment only when |
| 32 | + explicitly enabled |
| 33 | +- production PyPI publishing remains intentionally deferred |
| 34 | + |
| 35 | +Stop here if you only need the project shape for a reviewer, resume, or PR |
| 36 | +summary. |
| 37 | + |
| 38 | +Do not infer: |
| 39 | + |
| 40 | +- CVE scanning |
| 41 | +- dependency safety verdicts |
| 42 | +- package reputation scoring |
| 43 | +- hidden network enrichment |
| 44 | +- production PyPI availability |
| 45 | + |
| 46 | +## 5-minute artifact review |
| 47 | + |
| 48 | +Inspect the checked-in examples in this order: |
| 49 | + |
| 50 | +| Step | Artifact | What it proves | |
| 51 | +| --- | --- | --- | |
| 52 | +| 1 | [sample-report.json](../examples/sample-report.json) | Full machine-readable diff, risk, policy, and metadata shape. | |
| 53 | +| 2 | [sample-summary.json](../examples/sample-summary.json) | Compact CI-facing `summary` contract. | |
| 54 | +| 3 | [sample-policy.json](../examples/sample-policy.json) | Policy-only sidecar for CI consumers. | |
| 55 | +| 4 | [sample-report.md](../examples/sample-report.md) | Human-readable reviewer report. | |
| 56 | +| 5 | [sample-sarif.sarif](../examples/sample-sarif.sarif) | Conservative code-scanning output for selected high-signal findings. | |
| 57 | +| 6 | [github-actions-policy-consumer.yml](../examples/github-actions-policy-consumer.yml) | Copyable consumer path for capturing policy JSON in GitHub Actions. | |
| 58 | + |
| 59 | +Then read: |
| 60 | + |
| 61 | +- [report-schema.md](report-schema.md) |
| 62 | +- [policy-decision-explainability.md](policy-decision-explainability.md) |
| 63 | +- [github-code-scanning.md](github-code-scanning.md) |
| 64 | + |
| 65 | +Look for these reviewer anchors: |
| 66 | + |
| 67 | +- `summary` is the compact machine-readable entry point |
| 68 | +- `summary.policy` appears only when policy evaluation runs |
| 69 | +- `summary.enrichment` appears only when enrichment evidence exists |
| 70 | +- policy findings explain `decision_reason`, `policy_rule`, |
| 71 | + `matched_threshold`, and `observed_value` |
| 72 | +- SARIF is intentionally narrow and does not mirror every report finding |
| 73 | + |
| 74 | +Stop here if you need to understand the review outputs without running code. |
| 75 | + |
| 76 | +## 15-minute reproduction check |
| 77 | + |
| 78 | +From `tools/sbom-diff-and-risk`, run the deterministic example checks: |
| 79 | + |
| 80 | +```powershell |
| 81 | +python -m pip install -e .[dev] |
| 82 | +python scripts/regenerate-example-artifacts.py --check |
| 83 | +python scripts/regenerate-example-artifacts.py --check --only requirements |
| 84 | +``` |
| 85 | + |
| 86 | +Expected result: |
| 87 | + |
| 88 | +- the full checked-in no-network example set is up to date |
| 89 | +- the focused requirements example check passes |
| 90 | +- JSON, Markdown, summary, policy sidecar, and SARIF examples match the |
| 91 | + committed artifacts |
| 92 | +- no PyPI, Scorecard, CVE, or advisory network lookup is performed |
| 93 | + |
| 94 | +For the exact regeneration scope, read |
| 95 | +[example-artifact-regeneration.md](example-artifact-regeneration.md). |
| 96 | + |
| 97 | +Stop here if you need reproducible local evidence that the examples still match |
| 98 | +the code. |
| 99 | + |
| 100 | +## Release evidence |
| 101 | + |
| 102 | +Use this section only when the review question is about the released |
| 103 | +`sbom-diff-and-risk` tool artifacts. It is not the path for judging third-party |
| 104 | +dependency safety. |
| 105 | + |
| 106 | +| Evidence surface | Use when | Read | |
| 107 | +| --- | --- | --- | |
| 108 | +| Verification decision guide | You need to choose the right release verification path. | [verification.md](verification.md) | |
| 109 | +| GitHub Release assets and checksums | You downloaded wheel or source distribution files from a release. | [release-provenance.md](release-provenance.md) | |
| 110 | +| Workflow artifact attestations | You are verifying workflow-built wheel or source distribution artifacts. | [self-provenance.md](self-provenance.md) | |
| 111 | +| TestPyPI Trusted Publishing dry-run | You are checking whether the dry-run publisher path worked. | [pypi-trusted-publishing-readiness.md](pypi-trusted-publishing-readiness.md) | |
| 112 | +| Production PyPI decision gate | You are deciding whether production PyPI should be enabled later. | [pypi-production-publishing-decision.md](pypi-production-publishing-decision.md) | |
| 113 | + |
| 114 | +Keep the evidence surfaces separate: |
| 115 | + |
| 116 | +- GitHub workflow artifact attestation verifies workflow-built artifacts. |
| 117 | +- GitHub Release asset checksums verify downloaded release bytes against the |
| 118 | + release checksum manifest. |
| 119 | +- GitHub immutable-release verification applies only when the release is |
| 120 | + immutable and GitHub has generated release attestations. |
| 121 | +- TestPyPI Trusted Publishing proves the dry-run publisher path worked. |
| 122 | +- Production PyPI Trusted Publishing is intentionally deferred and does not |
| 123 | + exist for this project yet. |
| 124 | + |
| 125 | +Stop here if your review question is release provenance rather than dependency |
| 126 | +analysis behavior. |
| 127 | + |
| 128 | +## Deep review |
| 129 | + |
| 130 | +Use [reviewer-evidence-pack.md](reviewer-evidence-pack.md) for the full |
| 131 | +reproducible checklist, including: |
| 132 | + |
| 133 | +- local demo commands |
| 134 | +- release asset inspection |
| 135 | +- checksum verification |
| 136 | +- artifact attestation verification |
| 137 | +- TestPyPI evidence boundaries |
| 138 | +- SARIF/code-scanning boundaries |
| 139 | +- non-claims |
| 140 | + |
| 141 | +Use these supporting docs for focused review questions: |
| 142 | + |
| 143 | +- [dependency-risk-heuristics.md](dependency-risk-heuristics.md) for risk bucket |
| 144 | + semantics |
| 145 | +- [parser-boundaries.md](parser-boundaries.md) for deterministic parser limits |
| 146 | +- [policy-schema.md](policy-schema.md) for policy file shape |
| 147 | +- [policy-decision-ci-cookbook.md](policy-decision-ci-cookbook.md) for CI policy |
| 148 | + consumption |
| 149 | +- [summary-json-ci-cookbook.md](summary-json-ci-cookbook.md) for summary-only CI |
| 150 | + consumption |
| 151 | + |
| 152 | +## Reviewer bottom line |
| 153 | + |
| 154 | +`sbom-diff-and-risk` is review infrastructure. It makes dependency changes, |
| 155 | +policy decisions, and selected supply-chain trust signals easier to inspect. |
| 156 | +It does not decide whether a dependency is safe. |
0 commit comments