code.deps.provenance-reviewed
Dependencies entering a build are the reviewed ones, from a known source
Every third-party dependency a build resolves is fixed to a reviewed version from an expected source, so a build installs what was examined rather than whatever the ecosystem serves that day.
Assertion
for every resolved dependency d: d is pinned to a reviewed version, d carries an integrity digest, and d resolves from an expected registryRationale
A build pulls in code nobody on the team wrote, and the expectation is that this code is the code that was reviewed, fetched from the source it was expected to come from. The failure this guards against is substitution: a dependency that resolves to a newer, unreviewed version on the day of the build, a package pulled from an unexpected registry, or a name that resolves to a different author’s upload than the one examined. Any of these lands code in the artefact that no one looked at, and the earlier controls in this domain — committed lockfiles, pinned actions — are specific cases of this one broader expectation.
The expectation is about provenance and review, not about freezing versions forever. Dependencies move; the responsibility is that each move is a reviewed change to a tracked file, not an accident of resolution order.
Observation
The expectation draws on capabilities that tend to be used together:
- version pinning through a committed lockfile, so resolution is reproducible and a change in versions is a reviewable diff;
- integrity digests recorded beside each pinned version, so the fetched bytes are checked against what was pinned;
- source expectations, a registry or mirror a dependency must resolve from, so a package cannot be served from somewhere unexpected; and
- a bill of materials or dependency scan, so the set that actually ships can be enumerated and checked against known advisories.
A suitable check reads the manifests and lockfiles and confirms, for every resolved dependency, that it is pinned to a reviewed version, carries an integrity digest, and resolves from an expected source. The catalog does not prescribe a single ecosystem’s tool for this; the property is the same across package managers even where the mechanism differs.
This control is planned. The expectation is defined and reviewed; no collector is reading dependency provenance across repositories yet.
Remediation
Commit the lockfile the ecosystem produces, keep its integrity digests intact, and pin the registries a build is allowed to resolve from. Where a bill of materials is available, publish it with the artefact so the shipped set can be audited after the fact. Review changes to these files as changes to code, because that is what they are. A dependency upgrade that cannot be reviewed — an unpinned range, a floating tag — is the thing this expectation exists to surface.