Skip to content

security: add 7-day exclude-newer cooldown#31

Open
burnpiro wants to merge 1 commit into
mainfrom
security/cooldown-7d
Open

security: add 7-day exclude-newer cooldown#31
burnpiro wants to merge 1 commit into
mainfrom
security/cooldown-7d

Conversation

@burnpiro

Copy link
Copy Markdown

What

Adds exclude-newer = "7 days" to python/pyproject.toml's [tool.uv] table. New PyPI uploads are filtered out of resolution until they've been on the index for ≥ 7 days, whenever this project is locked or installed via uv.

pypiquant's dependency closure is cffi, torch, numpy (+ dev tooling) — no first-party PrimeIntellect packages, so no [tool.uv.exclude-newer-package] exemptions are needed.

Why

Most malicious PyPI uploads (typosquatting, account takeovers, dependency confusion) are detected and yanked within hours-to-days. A short cooldown quarantines them at near-zero cost. Part 1 of 3 in a coordinated supply-chain hardening rolling out across PrimeIntellect repos.

Notes

  • python/pyproject.toml is the project's Python build config (alongside the C++ build at the repo root); the cooldown applies whenever someone resolves/installs the Python package via uv.
  • No committed lockfile in this project — the cooldown takes effect at every fresh uv lock/uv pip install invocation.

🤖 Generated with Claude Code

Refuse to resolve any PyPI dependency uploaded in the last 7 days
(`[tool.uv] exclude-newer = "7 days"`) when this project is locked or
installed via uv. Mitigates blast radius of compromised dependencies
(typosquatting, account takeovers, dependency confusion).

Pins `required-version = ">=0.11.1"` so older uvs fail loudly instead
of silently parsing "7 days" as an RFC 3339 date and proceeding
*without* the cooldown — see uv#17908.

pypiquant has no first-party PrimeIntellect packages in its closure
(cffi, torch, numpy), so no `[tool.uv.exclude-newer-package]`
exemptions are needed. The comment in pyproject.toml documents when to
add one.

Part 1 of 3 in a coordinated supply-chain hardening across PI repos.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@burnpiro burnpiro force-pushed the security/cooldown-7d branch from dac3d24 to 8eb73b4 Compare May 29, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant