Skip to content

Can the dependency gate refuse young packages without breaking installs?

Answered 2026-10-04: yes, with conditions. Decided 2026-10-04: A, Homebrew ungated, and vulnerability threshold CRITICAL (I73I73 (closed): S07-egress-gateway: vulnerability threshold of the dependency gateFound by the X21-dep-gate-registries spike (#32).). Source: I32I32 (closed): X21-dep-gate-registries: Dependency gate on real registriesX21-dep-gate-registries (added to S11-verification-and-spikes in #14), X21-dep-gate-registriesX21-dep-gate-registries: Dependency gate on real registriesCan wb-proxyd map a download to package, version and publish time for npm, PyPI, the Go module proxy, crates.io and Homebrew?. Changes S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq… and T00-indexT00-indexboundary 6 is the host terminal stream.. Opens I73I73 (closed): S07-egress-gateway: vulnerability threshold of the dependency gateFound by the X21-dep-gate-registries spike (#32). and I76I76 (closed): Measure the Go checksum-database clock of the dependency gate end to endFollow-up from the X21-dep-gate-registries spike (#32) and the review of its result (#75)..

guest, untrustednpm, uv, pip,go, cargolockfile installhost: trustedwb-proxyd1. list: hide young versions2. download: refuse youngand vulnerable (OSV)registry metadataversions and publish timespackage downloadsold versions passyoung versionrefused, with the date

Figure 1. An installer first asks the registry which versions exist, then downloads one. With caret ranges (^1.2), it picks the newest match, which is often younger than 7 days. If wb-proxyd only refuses that download, the whole install fails (red path). If it also removes the young versions from the list, the installer picks an older one. A lockfile install skips the list and asks for exact versions. For that case the download refusal stays (S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., X21-dep-gate-registriesX21-dep-gate-registries: Dependency gate on real registriesCan wb-proxyd map a download to package, version and publish time for npm, PyPI, the Go module proxy, crates.io and Homebrew?).

A. Filter the metadata, refuse the download

Section titled “A. Filter the metadata, refuse the download”

wb-proxyd removes too-young versions from the version lists of npm, PyPI, crates.io and the Go module proxy, and still refuses a too-young download. Homebrew isn’t gated.

C. Rely on the installers’ own cooldowns

Section titled “C. Rely on the installers’ own cooldowns”

npm (min-release-age, in the config documentation shipped with npm 12.2), pnpm (minimumReleaseAge) and uv (exclude-newer) can skip young versions themselves, if configured in the guest.

Like A, without refusing downloads.

RequirementA. Filter + refuseB. Refuse onlyC. Guest cooldownsD. Filter only
SEC07-dep-gateSEC07-dep-gate: Dependency gatePackage downloads (npm, PyPI, Go modules, crates) are refused when the version is younger than a minimum age or has a known vulnerability at or above a severity threshold. young or vulnerable downloads are refusedkeptholdsguest can disablelockfiles bypass
Fresh installs with a 7-day minimum age9 of 10 pass0 of 10 passnpm, pnpm, uv only9 of 10 pass
Lockfile installs with a 7-day minimum age8 of 10 pass7 of 10 passnot measured9 of 10, derived
T08-homebrew-ungatedT08-homebrew-ungated: Young Homebrew bottlesHomebrew bottles from homebrew/core are not age-gated or checked against OSV. young Homebrew bottlesaccepted, not gatedaccepted, not gatedno Homebrew cooldownaccepted, not gated
T07-ungated-sourcesT07-ungated-sources: Dependencies from ungated sourcesThe dependency gate (SEC07-dep-gate) covers the npm, PyPI, Go module proxy and crates.io hosts only. packages from git hosts or mirrorsaccepted residualsame residualmirrors onlysame residual
NFR06-explained-refusalsNFR06-explained-refusals: OperabilityEvery refusal names the rule that caused it and how to change it. each refusal names its rulepackage, datepackage, dateinstaller’s own errorpackage, date
NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage. npm ci close to the hostOSV overlappedOSV overlappedno proxy workOSV overlapped

Homebrew is a separate choice from the options above. Recommended: don’t gate it (T08-homebrew-ungatedT08-homebrew-ungated: Young Homebrew bottlesHomebrew bottles from homebrew/core are not age-gated or checked against OSV.), and limit ghcr.io to homebrew/core so that bottle access doesn’t open every image on that host. The alternative is to refuse bottles younger than 7 days. Homebrew offers one version per formula, so a refused bottle fails the install. On 2026-10-04 that would have refused 61 of the 190 most installed core formulae. OSV has no Homebrew data either way.

Details and glossary

Why two layers. A fresh install resolves version ranges against the registry’s list of versions and then downloads what it picked. A lockfile install skips the list and downloads exact versions. Filtering the list fixes the first. Only refusing the download covers the second, and also a URL the agent types by hand.

Why not Go’s own time. The module proxy reports the time of the commit that a version tag points at. Anyone can tag an old commit, or set the commit date, so a version published today can look years old. The checksum database adds a record the first time a version is looked up, in order, and nobody can backdate it.

Why not Homebrew. brew installs the one current version of a formula, from metadata that Homebrew signs. wb-proxyd has no older version to fall back to and no list wb-proxyd could change without breaking the signature. A minimum age would only refuse, and would refuse a third of popular formulae.

Glossary

  • Registry metadata: the list of versions of a package, with download addresses and publish times, that an installer reads first.
  • Packument: npm’s name for that list. The full one has publish times. The abbreviated one npm asks for by default doesn’t.
  • dist-tag: a named pointer to a version, like latest.
  • Lockfile: a file in the project with the exact version of every dependency, such as package-lock.json or uv.lock.
  • Caret range: ^1.2.0, any version from 1.2.0 up to the next major version.
  • Sparse index: crates.io’s version lists, one file per crate.
  • Checksum database: sum.golang.org, a public append-only log of the hash of every Go module version.
  • OSV: a public database of vulnerabilities in open-source packages.