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)..
The problem
Section titled “The problem”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?).
Options
Section titled “Options”Impact
Section titled “Impact”Homebrew
Section titled “Homebrew”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.
Evidence
Section titled “Evidence”- verified Fresh installs of 10 projects (5 npm, 3 uv, 2 pip) through the spike’s proxy: refuse failed 10 of 10, filter 1 of 10. The failure asks for
PyJWT>=2.15.1, uploaded 6 days earlier (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?, “Installs with a 7-day minimum age”). - verified Lockfile installs: refuse failed 3 of 10, filter 2 of 10. Both failures pin versions from the last 7 days.
- verified cargo: a fresh
cargo fetchof nine crates failed with refuse and passed with filter. The lockfile fetch passed with both. - verified Go:
go get @latestof five modules failed with refuse and passed with filter, and the lockfile download passed with both. Those runs used the.infoTime as the clock, which 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. now rules out. 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). repeated them with the checksum-database clock, with the same outcome (B76-gosumdb-clockB76-gosumdb-clock: Does the checksum database work as Go's clock for the dependency gate?Yes.). - verified Publish times: npm
timein the full packument, PyPIupload-timeper file, crates.iopubtimeon all 2,873 index lines sampled.npm cianduv sync --frozendon’t fetch metadata, and every download was still mapped from its URL. - verified Go’s
.infoTime is the commit time. 173 of 200 versions first seen by the module proxy in the last week had one more than 7 days older. Checksum database record numbers grew with first-seen time, in 36 samples over 14 days. B76-gosumdb-clockB76-gosumdb-clock: Does the checksum database work as Go's clock for the dependency gate?Yes. has the end-to-end check of the new clock. - verified Homebrew: 61 of the 190 most installed core formulae had a bottle younger than 7 days.
brewchecks the signature offormula.jws.json(Library/Homebrew/api.rb,verify_and_parse_jws). OSV doesn’t list a Homebrew ecosystem. - verified OSV, two runs per setting: 230 to 250 ms median per lookup from the proxy, and 296 ms one at a time from a script. For axios (616 packages, 633 requests),
npm citook 31 to 33 s with a lookup before each download, against 18 to 23 s without OSV. Overlapped with the download, it took 15 s, no slower than without OSV. Coalescing intoquerybatchdidn’t help. - verified The checksum database clock needs one calibration point, the record number of a version that
index.golang.orglists as first seen 7 days ago. The spike checked the ordering, 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). the whole clock (B76-gosumdb-clockB76-gosumdb-clock: Does the checksum database work as Go's clock for the dependency gate?Yes.). - assumed That the 10 projects are typical. They are active, popular projects, pinned to their commits of late September and early October 2026.
What this unblocks
Section titled “What this unblocks”- The dependency gate in
wb-proxydfor V1-M5-approvalsV1-M5-approvals: Approvals and policyApprovals with notifications and wb approve, learn mode, credential bindings, the dependency gate, wb trust with the boundary check, wb policy explain, and the toolchain reconcile. (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.), to the rewritten 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. section. - I73I73 (closed): S07-egress-gateway: vulnerability threshold of the dependency gateFound by the X21-dep-gate-registries spike (#32)., the vulnerability threshold, which the gate’s implementation also needs.
- 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)., the end-to-end measurement of the Go clock.
- Part of the exit criterion of V1-M1-spikes-closedV1-M1-spikes-closed: Spikes answered and spec gaps closedX01-model-credential to X09-keychain-unsigned and X17-image-build to X28-git-alloc-limit written up in docs/spikes/, the spec issues of the first implementation plan decided, and specs updated..
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.jsonoruv.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.