Cooldown¶
mpm can refuse to install or upgrade any package version younger than a chosen release age. This is a supply-chain safeguard: malicious releases (compromised credentials, dependency confusion, account takeover) are typically detected and pulled from registries within days of publication, so a short waiting period keeps the most recent and most likely compromised versions off the system.
Recent examples include the XZ Utils backdoor and recurring vulnerabilities in the VS Code extension marketplace. A delay of even a few days would have given the community time to react.
Quick start¶
The cooldown applies to every install and upgrade mpm performs:
$ mpm --cooldown "7 days" upgrade --all
$ mpm --cooldown "1 week" install some-package
$ mpm --cooldown 12h --allow-unsupported-managers upgrade --all # let unsupported managers run too
If you are unsure which value to pick, --cooldown '7 days' is a reasonable default: long enough for most compromised releases to be flagged and pulled from registries, short enough to keep security updates timely. There is no bare --cooldown shorthand: the option always takes an explicit duration.
--cooldown accepts three input shapes:
Friendly duration:
7 days,1 week,12h,30m,45s, a bare number of days (7), or0/ empty to disable the gate.ISO 8601 duration:
P7D,PT12H,P1WT6H. Case-insensitive.RFC 3339 absolute timestamp:
2024-05-01T00:00:00Zor with an offset like+02:00. Converted at parse time tonow - timestamp; a timestamp in the future disables the gate.
The same value is settable as the cooldown key in any mpm configuration file (see Configuration for the full schema) or as the MPM_COOLDOWN environment variable.
Note
Durations resolve to a fixed number of seconds, assuming a day is 24 hours. The local time zone, DST transitions, and calendar boundaries are ignored. Calendar units (months, years) are rejected for the same reason: 28-31 days and 365-366 days make them unsuitable for a precise release-age cutoff. Use days or weeks instead.
How it works¶
When cooldown is set, mpm:
Computes a UTC cutoff timestamp equal to
now - cooldown.For each manager that natively enforces a release-age gate (see the support table below), injects the manager’s dedicated environment variable carrying that cutoff into every CLI call. The manager’s own resolver then excludes every version published after the cutoff, including transitive dependencies.
For each manager without a native gate, skips install / upgrade with a warning (fail-closed). Pass
--allow-unsupported-managers(or setrequire_cooldown_support = falsein the config file) to run those managers anyway, without the safeguard.Leaves read-only operations (
outdated,installed,search) untouched: information is never blocked, only mutations are.
The choice to delegate to each manager’s own resolver rather than reimplement the gate inside mpm is deliberate: only the resolver can apply the cutoff to the whole dependency closure (see Limitations below).
Supported managers¶
The table below is the source of truth for which managers mpm can gate today and the state of the upstream effort everywhere else. Statuses:
âś… Enforced:
mpmactively injects a cooldown environment variable on every CLI call. Listed in thecooldown_env_varframework.🔜 Shipped upstream: the manager ships a release-age gate but
mpmdoes not (yet) plug into it.đźš§ Proposed: an open pull request, RFC, or issue is on file upstream.
❌ None: no public proposal found.
➖ N/A: the concept does not apply (distro-curated repositories with their own staging, archived projects, meta-upgraders, …). A structural equivalent is noted when relevant.
|
Status |
Mechanism |
Reference |
|---|---|---|---|
❌ None |
— |
— |
|
🔜 Shipped upstream (since |
|
||
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None |
— |
— |
|
âž– N/A (archived June 2022) |
— |
||
➖ N/A (Debian’s |
— |
||
➖ N/A (unmaintained since 2017; wraps Cygwin’s |
— |
||
âž– N/A (follows |
— |
— |
|
❌ None (runtime version manager) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
đźš§ Proposed (closed as not planned for users; merged for internal bottle resource resolution) |
(internal) |
||
❌ None |
— |
— |
|
đźš§ Proposed (RFC 3923 merged, nightly implementation) |
|
||
đźš§ Same as |
— |
||
❌ None (Exherbo, source-based) |
— |
— |
|
❌ None |
— |
— |
|
❌ None (Chrome OS) |
— |
— |
|
đźš§ Proposed |
open PR adds |
||
đźš§ Proposed |
|
||
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None (effort focused on |
— |
— |
|
đźš§ Proposed |
|
||
đźš§ Proposed (scoped to |
|
||
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None (macOS, Debian/dpkg-based) |
— |
— |
|
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None |
— |
— |
|
âž– N/A (LVFS staged deployment) |
— |
||
❌ None |
— |
— |
|
đźš§ Proposed (Bundler PR open) |
|
||
❌ None (installs extensions from git repos) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
đźš§ Proposed (library API merged, no CLI flag) |
|
||
❌ None |
— |
— |
|
đźš§ Same as |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
🔜 Shipped upstream |
|
||
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
✅ Enforced (npm ≥ 11.10) |
|
||
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None (Arch AUR helper) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None (Arch AUR helper) |
— |
— |
|
✅ Enforced (pip ≥ 26.1) |
|
||
✅ Enforced (via pip’s env var; needs the underlying pip ≥ 26.1) |
inherits |
||
đźš§ Proposed (shipped for workspaces since |
|
||
âž– N/A (delegates to the distro backend) |
— |
— |
|
❌ None |
— |
— |
|
❌ None (OpenBSD, per-release curated) |
— |
— |
|
❌ None (pkgsrc binary packages) |
— |
— |
|
✅ Enforced (pnpm ≥ 11.0) |
|
||
❌ None (FreeBSD ports) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
đźš§ Proposed |
open feature request |
||
❌ None |
— |
— |
|
đźš§ Inherits from |
— |
— |
|
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None (Slackware) |
— |
— |
|
âž– N/A (risk channels |
|
||
❌ None (static-binary installer) |
— |
— |
|
❌ None (Source Mage, source-based) |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
âž– N/A (legacy SVR4 tooling superseded by IPS) |
— |
||
âž– N/A (Clear Linux discontinued July 2025) |
— |
||
❌ None (SliTaz) |
— |
— |
|
❌ None (TeX Live, curated) |
— |
— |
|
âž– N/A (meta-upgrader; delegates to each underlying manager) |
— |
— |
|
❌ None (Mageia) |
— |
— |
|
âś… Enforced |
|
||
❌ None |
— |
— |
|
❌ None |
— |
— |
|
âž– N/A (unmaintained since November 2025) |
— |
||
❌ None |
— |
— |
|
đźš§ Proposed |
proposed enterprise policy |
||
đźš§ Proposed |
open feature request |
||
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
|
❌ None (project in maintenance mode) |
— |
|
âž– N/A (Yarn Berry removed global installs, so |
|
||
✅ Enforced (yay ≥ 13.0) |
generated |
||
âž– N/A (deprecated alias for |
— |
— |
|
❌ None |
— |
— |
|
❌ None |
— |
— |
|
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None |
— |
— |
|
❌ None (clones a Git branch or tag, no release feed) |
— |
— |
|
❌ None |
— |
— |
Notes¶
brewships internal release-age gates inside Homebrew’s bottle resource-resolution pipeline so formulae built from upstream resources get a delay automatically. Coverage expanded with Homebrew6.0.0to include npm and pip (Homebrew/brew#21919), PyPI (Homebrew/brew#21920), RubyGems (Homebrew/brew#22253), and Bundler (Homebrew/brew#22555). All four gate source dependencies fetched during a formula build; none expose a user-facing knob. The issue requesting one forbrew install(Homebrew/brew#21129) was closed as not planned. The scope is distinct frommpm’s--cooldown, which gates the package versionmpmasksbrewto install: brew’s internal gate keeps build-time dependencies fresh-but-not-too-fresh,mpm’s gate delays the package version itself. Both can be in effect simultaneously without conflict.pipxdelegates to whichever pip lives inside its managed virtualenvs. If that pip predates26.1(or pipx routes resolution throughuvinstead),PIP_UPLOADED_PRIOR_TOis silently ignored.mpmhas no clean way to inspect pipx’s internal resolver, so treat the pipx gate as best-effort.pixiships a real release-age gate,exclude-newer, but only for workspaces:pixi globalhard-codesexclude_newer: Noneat every solve site, and that is the scopempmdrives. The setting is also declarative-only, with no flag and no environment variable to inject (prefix-dev/pixi#5018), so even a global-scope gate would need a knob beforempmcould reach it. Hence 🚧 rather than 🔜: what is missing upstream is the partmpmwould use.dotnet: NuGet’s cooldown design (NuGet/Home#14657) is under implementation, but its V1 enumeratesdotnet packagegestures and the Visual Studio surfaces only.dotnet tool installanddotnet tool update, the commandsmpmdrives, appear in no tracking issue. The setting is per-source innuget.config, which the tool commands do read, so the scope may widen later.yarn-berry: the gate works in Berry≥ 4.10, but Yarn Berry removedyarn global, sompm’syarn-berryhandler only implementssearch. OnboardingnpmMinimalAgeGatewould not change anything reachable throughmpm.apt,snap,fwupdall have structural delays (Debian’s migration windows, Snap risk channels, LVFS staged deployment) rather than per-version age gates. They’re marked N/A because the underlying ecosystem solves the problem in a different shape.yayadded user-programmable Lua hooks in v13. AnUpgradeSelecthook can filter the upgrade set by AURLastModifiedage (yay ships an example atdoc/examples/recently_modified.lua), and the maintainer closed the dedicated minimum-release-age requests (Jguer/yay#2824, Jguer/yay#2848) in favor of it.mpmnow drives that machinery for a per-run cooldown by overlaying a generatedinit.luathrough a privateXDG_CONFIG_HOME: the overlay chains the user’s realinit.lua(so nothing in their config is lost) and registers two hooks keyed off the samenow - cooldowncutoff (passed asMPM_COOLDOWN_EPOCH).UpgradeSelectholds back AUR upgrades younger than the floor onyay -Syu, andAURPreInstallaborts a freshyay -Swhose AUR base is younger than the floor, closing the gapUpgradeSelectalone left open (Jguer/yay#2883). This needs yay≥ 13; an older yay stays a usable manager but cannot honor the cooldown.The Arch AUR helpers (
pacaur,paru) and most distro front-ends inherit whatever delay the underlying repository / AUR provides; none of them ship a dedicated cooldown setting.
Retraction paths by registry¶
A cooldown assumes something happens during the wait. If a compromised release can never be withdrawn, holding it for seven days only delays installing it by seven days: the version ages into eligibility unchanged. The safeguard’s value therefore rests on the registry behind each manager having a retraction path, and on that path being reachable by the resolver rather than merely advisory.
Retraction is a property of the registry, not of the manager CLI. pip, pipx, uv and uvx all resolve against PyPI; npm, pnpm and yarn all against the npm registry. The table below is keyed by registry rather than by manager, using the purl type mpm already maps to it (the PURL_MAP of meta_package_manager.specifier).
Two independent axes are tracked:
Retraction decides whether waiting achieves anything at all.
Publish date decides whether
mpmcould emulate a gate where no native one exists, which is what the advisory and block modes under Possible future directions are blocked on.
They really are independent. GitHub release assets expose a trustworthy server-set publication date and have no retraction path whatsoever, so a cooldown there is easy to compute and worth very little.
Retraction shapes, strongest first:
Yank: the artifact stays downloadable for an exact pin, but the resolver stops selecting it. The shape a cooldown wants.
Unpublish: the version is deleted outright. Effective, at the cost of breaking pinned installs.
Relabel: the artifact is moved off the default channel or label, and stays reachable only by asking for it explicitly.
Index revert: nothing is retracted at the artifact level. The curated index or channel pointer moves back off the bad version.
Flag only: the version is marked but still resolves, so a cooldown gains nothing from it.
None: no registry-side path, short of the upstream author deleting their own release.
A blank cell means no citable public source was found. As in the table above, absence of evidence is not recorded as absence of the capability.
Registry (purl type) |
|
Retraction |
Publish date |
|---|---|---|---|
PyPI ( |
Yank (PEP 592): the file stays downloadable, but an installer “MUST ignore yanked releases, if the selection constraints can be satisfied with a non-yanked version” |
âś… |
|
npm registry ( |
|
Unpublish within 72 h of publishing, then only with no dependents, under 300 weekly downloads and a single owner (policy). Past that, flag only: |
âś… |
crates.io ( |
Yank ( |
âś… |
|
RubyGems.org ( |
Unpublish: |
âś… |
|
Packagist ( |
Index revert: versions are fetched “from tags you create in your VCS repository” (about), so deleting the upstream tag withdraws the version. The package-level |
âś… per-version |
|
NuGet.org ( |
Yank (unlist): “nuget.org does not support permanent deletion of packages”, so an unlisted version leaves search and the gallery but “can still be downloaded and installed by using an exact version number” (policy). Malware is the carve-out, deleted outright, each removal landing in the public catalog as a |
âś… |
|
anaconda.org / conda-forge ( |
|
Relabel: “we do not allow edits or the deletion of packages on conda-forge” (immutability); a bad artifact is labelled broken and “Users will no longer be able to install them by default” (procedure) |
âś… |
CPAN / PAUSE ( |
Unpublish: an author can delete a distribution from the mirrors, though “a secondary mirror network called BackPAN retains distributions even if they are deleted from CPAN” (CPAN) |
||
AUR |
None at the version level: an AUR package is a git repository with no per-version artifact to withdraw, so remediation is a maintainer push or deletion of the whole package |
âś… server-set |
|
Homebrew taps |
Index revert through the tap’s git history, over a package-level lifecycle: |
❌ a formula records the upstream version, not its publication date |
|
Distro binary archives ( |
|
Index revert: removal is an archive operation and the mirror is rebuilt without the package. Debian, for one, requires filing an |
❌ the version string is the distro maintainer’s build, carrying no upstream publication date |
Haxe library registry ( |
None client-side: the remoting API is submit-only, exposing |
âś… server-set per-version release date, carried as |
|
Raku ecosystem ( |
Immutable once published: fez, the ecosystem zef resolves against, accepts an upload per version and offers its authors no delete or yank verb, so a withdrawal is an administrative request rather than a client-visible operation |
❌ the identity a distribution is known by carries a version, an authority and an API level but no date, and neither the listing nor the search reports one |
|
Git repositories (bash) |
Upstream deletion: bpkg clones the |
❌ nothing dates a release: the fetch resolves a branch or tag on the repository rather than a published artefact, so the only timestamp available is a commit date, which is client-set |
|
Janet package listing |
Index revert: the listing is a single curated |
❌ the listing pairs a name with a URL and nothing else, carrying no versions and so no dates; a package’s versions are the git tags of the repository it points at |
|
clib package wiki |
Wiki edit: the index is a GitHub wiki page, clibs/clib/wiki/Packages, scraped as HTML ( |
❌ the index carries names, URLs and descriptions only, with no version field at all, so there is nothing to date a release by |
|
Nim package index ( |
Index revert: the registry is a single |
❌ the index carries no versions at all, only names and URLs, versions being the git tags of the repository each entry points at, so nothing in it dates a release |
|
LuaRocks ( |
Deletion, not retraction: luarocks.org is the single host and its site application exposes owner and administrator delete paths ( |
❌ the manifest the client downloads maps module to version to |
|
Rust release channels ( |
None published: releases are static artifacts on the project’s own distribution host, with no yank, unlist or delete surface exposed to anyone outside the Rust release team; a withdrawal is a change to the channel manifest that host serves |
âś… every channel manifest carries the release date of the toolchain it describes, which |
|
Haskell toolchain bindists |
None published: bindists are static artifacts named by ghcup’s own metadata file, which carries no yank or unlist surface; withdrawing a release means the Haskell.org release team editing the metadata that describes it |
âś… the metadata records a release day per version, which |
|
Julia release channels |
None published: channels resolve through a versions database juliaup distributes, which offers no yank or unlist entry; withdrawing a release means the Julia release team dropping it from that database |
❌ the database names versions and their download artifacts, carrying no publication date for a release-age gate to read |
|
Python interpreter source releases |
None, and no operator to ask: each version is a build recipe shipped inside pyenv naming an upstream tarball, so withdrawing one means either the implementation pulling its own release or a new pyenv dropping the recipe |
❌ a recipe names a source archive and its checksum, carrying no publication date for a release-age gate to read |
|
Apple developer downloads |
Vendor withdrawal only: releases are served from Apple’s developer downloads and catalogued by the community feed xcodes reads, so a version disappears when Apple stops serving it, with no yank or unlist surface exposed to anyone else |
âś… the catalog feed records a release date per version, though |
|
Google Cloud SDK components |
Vendor withdrawal only: components are published solely by Google and described by the snapshot the CLI fetches, so a version leaves by being dropped from that snapshot, which is also how a still-installed component comes to report itself as deprecated |
❌ the snapshot names versions and their archives, carrying no publication date for a release-age gate to read |
|
Vagrant Cloud boxes |
Author deletion: a box version is published by its own author to the public registry and can be withdrawn there, the version disappearing from the metadata Vagrant reads while any copy already downloaded stays in the local box store |
âś… the registry records a creation date per box version, though |
|
Ollama model registry |
Author deletion: a model is published to the registry under its own namespace and withdrawn there, the tag ceasing to resolve while any copy already pulled stays in the local store |
❌ the manifest carries a content digest and no publication date for a release-age gate to read |
|
Git-manifest indexes |
|
Index revert: reverting the manifest, Portfile or derivation commit withdraws the version |
❌ only the commit date, which is client-set and trivially backdated |
Chocolatey Community Repository ( |
Unlist: moderators can unlist individual package versions (list/unlist), and malicious scripts are grounds for banning the maintainer and deleting their packages (moderation) |
||
PowerShell Gallery |
Yank under another name: the Gallery “does not support permanent deletion of packages”; an unlisted version leaves search and listings but “remains downloadable by specifying its exact version” (docs) |
||
Snap Store |
Index revert on the channel pointer: “Promoting and demoting revisions is also a useful progression […] for when a snap needs to revert to an older version as a response to a security concern” (release management) |
||
extensions.gnome.org |
Not documented: the review guidelines govern approval before publication and say nothing about withdrawing an extension afterwards, so what happens to a published extension later found malicious is unrecorded rather than known to be nothing. |
||
Flathub |
Relabel: end-of-life metadata delists the application, and the maintainer documentation describes no way to remove or roll back an individual build (maintenance) |
||
VS Code Marketplace |
Unpublish, uniquely with client-side remediation: “the extension is removed from the Marketplace and added to a block list. If the extension has been installed, it’s automatically uninstalled by VS Code” (runtime security), against a public ledger of removals (RemovedPackages.md) |
||
GitHub release assets |
|
None: withdrawing a build is the upstream author deleting their own release or tag. Nothing sits between them and the user |
âś… server-set |
Upstream Git clones |
|
None: a plugin is cloned straight from its upstream repository, so withdrawing a bad revision is its author force-pushing, retagging or deleting it themselves. No index sits in between |
❌ a commit or tag date is set by the author and freely rewritable |
Source-based recipe trees |
Index revert of the recipe tree |
❌ a recipe carries no publication date |
|
LVFS |
Index revert over staged remotes: firmware moves through embargo, testing and stable, and “You should only move stable firmware to testing and stable after completing an end-to-end test with the embargo remote” (LVFS). No withdrawal from |
||
SDKMAN broker |
Unpublish: the vendor release endpoint “supports POST and DELETE HTTP methods” (vendor API) |
||
Curated app stores and archives |
|||
No registry of their own |
âž– Not applicable: these managers either delegate to whichever manager they front ( |
âž– |
Cross-referencing against the support table: every manager mpm gates today, and nearly every one with a shipped or proposed upstream mechanism, sits on a registry in the yank, unpublish or relabel rows. The exception is mise, which shipped minimum_release_age while resolving against GitHub release assets that have no retraction path at all. So the retraction shape is a good predictor of where a cooldown pays off, and only a rough predictor of where one gets built.
Limitations¶
The transitive-dependency gap¶
mpm’s cooldown is exactly as good as the underlying resolver’s. For managers that install with a real dependency resolver (PyPI, npm, …), the native mechanism applies the cutoff to the whole tree, including transitive dependencies. For managers without a native mechanism, mpm cannot retrofit one without reimplementing the resolver: pinning only the top-level package would leave transitive dependencies fresh, which is precisely the most common attack vector. That is why unsupported managers are fail-closed rather than fail-open.
Coverage limits¶
Distro and system managers (apt, dnf, pacman, brew, …) generally have no per-upstream publish date attached to a package version: their version string is the distro maintainer’s package build, not the upstream release, and the threat model differs (curated repositories with their own staging and review). The concept does not cleanly map. These managers are listed in the support table as N/A.
The retraction premise¶
The cooldown buys time for someone else to act. Where the registry has no way to withdraw a bad release (Retraction paths by registry), that time buys nothing: the compromised version simply ages into eligibility.
In an ecosystem whose only remediation is publishing a fixed version, the gate can go further and invert. A malicious 1.2.3 lands at T, the maintainer ships a clean 1.2.4 at T+3, and a 7-day cooldown holds 1.2.4 back until T+10 while 1.2.3 clears the window at T+7. For those three days the gate steers the resolver onto the compromised version, which an ungated run would have skipped in favor of the fix. A yank closes that window, since the resolver drops 1.2.3 the moment it is withdrawn; the exposure is specific to the index revert, flag only and none rows of the retraction table.
mpm does not detect this case. It injects the cutoff and lets the resolver decide.
Read-only consistency¶
The outdated report is not filtered by the cooldown on unsupported managers, so it may list versions that the subsequent upgrade would skip. For supported managers the same environment variable also affects outdated, so the report and the upgrade stay consistent.
The stateless-gate trade-off¶
mpm reads each release’s current age at run time and injects the cutoff: it keeps no ledger of past observations. That is safe (a fresh push looks fresh and is held back) but coarse. A package that publishes faster than the cooldown is held back wholesale until its newest version ages in, whereas a stateful tool can still install the most recent version that has already cleared the window. Because mpm trusts the age reported at the moment of the run, it also cannot cross-check that age against earlier observations the way aur-cooldown’s persisted version-to-commit ledger does. Both capabilities need the durable state mpm deliberately forgoes.
Possible future directions¶
Detect
pipx’s internal pip (or uv) at runtime.mpm’spipmanager has a hard>=26.1.0floor, butpipxmaintains its own virtualenvs whose pip may be older or whose resolution may be routed throughuv(where the right env var isUV_EXCLUDE_NEWERinstead ofPIP_UPLOADED_PRIOR_TO). Probing the resolver per venv would letmpmrefuse to advertise enforcement when the underlying pip is stale.Per-package exemptions (
--cooldown-exclude). The gate is currently all-or-nothing per run, so one legitimately-fresh package (a security fix, a package the user publishes themselves) forces the cooldown off for the whole tree. Both enforcing managers already expose the escape hatch natively: uv’s--exclude-newer-packagetakes aPACKAGE=DATEpair, npm’smin-release-age-excludetakes names orminimatchglobs. The catch is that this would not fit the uniformcooldown_env_varinjection: uv publishes no environment variable for--exclude-newer-package(only the plain--exclude-newercarries aUV_EXCLUDE_NEWERbinding), so uv needs the exemption appended to the command line while npm can keep taking it throughnpm_config_min-release-age-exclude. Supporting it therefore means a per-manager hook alongside the env var rather than a one-line addition, which is worth knowing before the option is designed.Onboard mechanisms as they ship upstream. Several managers have active work that would slot into the
cooldown_env_varframework as a one-line addition once released: Composer (composer/composer#12692), Bundler / RubyGems (ruby/rubygems#9576), Cargo (stabilization of-Zmin-publish-age, rust-lang/cargo#17009), dnf5 (rpm-software-management/dnf5#2743), Scoop (ScoopInstaller/Scoop#6513), winget (microsoft/winget-cli#6178), VS Code (microsoft/vscode#316867).Advisory mode for
outdatedon unsupported managers.mpmcould query each package registry directly (PyPI, RubyGems, crates.io, …) to annotateoutdatedwith a “safe latest” column: purely informational, no install-side enforcement. This avoids the transitive-resolution trap while still being useful. It requires a new HTTP client surface and a state directory for date caching, neither of whichmpmhas today.Consult a curated compromise-window denylist. aur-cooldown pairs its age gate with aur-malware-check’s
campaigns.json, denying only the versions pushed inside a dated compromise window rather than freezing a package by name. This is orthogonal to release age: a version can be old enough to clear the cooldown yet still sit inside a known-bad window. Wiring such a feed intompmwould lean on the same HTTP client and state directory the advisory mode above already calls for.Block-mode for bundled-artifact managers (
snap,flatpak,vscode,mas). These install self-contained artifacts with no separate transitive resolution at install time, so a “refuse if fresher than the cutoff” check would be sound without a resolver. The bottleneck is per-store API support for per-version publish dates.
Prior art¶
uv
exclude-newer— the model for the Python ecosystem.npm
min-release-age, shipped innpm11.10.Renovate
minimumReleaseAge— delays dependency PRs by a configurable period.aur-cooldown brings the same release-age delay to the Arch AUR, gating on the server-set
LastModifiedage thatmpm’s yay overlay also reads.aur-malware-check publishes
campaigns.json, a community feed of dated AUR compromise windows that aur-cooldown consults to reject versions pushed during a known incident.William Woodruff, We should all be using dependency cooldowns.