Skip to content

harden(supply-chain): expand install detection to bun + pdm + pipenv + conda + mamba #144

Closed

Description

@thehoff

Surfaced by agy peer review of #143. The supply-chain install-detection gate currently covers npm/pnpm/yarn/pip/uv/poetry/pipx. Major package managers in active use are missing entirely — installs via these tools return a silent `Verdict::Skip` regardless of package, source, or cooldown.

Missing ecosystems

Ecosystem Verbs to detect Bare-lockfile variant
Bun (JS/TS) `bun install `, `bun add `, `bun i ` `bun install` (reads bun.lockb)
PDM (Python) `pdm add ` `pdm install`, `pdm sync`
Pipenv (Python) `pipenv install ` `pipenv install`, `pipenv sync`
conda (Python/data-science) `conda install `, `conda create -n env ` n/a
mamba (Python/data-science) `mamba install ` n/a

Acceptance criteria

  • One regex per package-bearing verb form (or extend an existing one if the pattern is identical to a covered ecosystem).
  • Bare-lockfile variants extend `detect_bare_lockfile_installs` with `accepts_packages: false` (per the convention harden(supply-chain): close value-flag, case, versioned-pip, line-cont bypasses #143 locked in).
  • Ecosystem mapping: bun → `Ecosystem::Npm`, pdm/pipenv/conda/mamba → `Ecosystem::Pypi` (this is a slight stretch for conda/mamba which use their own channels, but Pypi is the closest current bucket — flag in the unvettable message).
  • Adversarial tests per ecosystem, including abs-path / Windows-launcher / case-insensitivity / line-continuation variants (the existing test infrastructure makes this cheap).
  • Must NOT regress any of the existing 2,600+ tests.

Out of scope

  • conda/mamba channel-aware vetting (would need a real conda-channel client). The detect-and-Ask layer is sufficient for now.
  • A first-class `Ecosystem::Conda` variant — track separately if it lands.

🤖 Generated with Claude Code

Activity

  1. thehoff commented on May 23, 2026

    @thehoff
    OwnerAuthor

    Codex peer review on PR #143 reinforced this issue and added these to the ecosystem-expansion checklist (sharpening the existing list):

    • pnpm update — pnpm's update sub-command (currently pnpm install / pnpm i / pnpm ci are covered; update falls through).
    • poetry update — poetry's update sub-command (currently only poetry install and poetry add are covered).
    • brew install — Homebrew package installs (macOS ecosystem). Different surface but install-shaped.

    Codex also explicitly confirmed these as out of scope (maintenance/lockfile-only, NOT installs):

    • npm rebuild, npm dedupe
    • uv lock, poetry lock

    The PR #143 commit now documents the gate's scope boundary as a code comment, citing this issue as the tracker for expansion.

  2. added a commit that references this issue on Jun 4, 2026
  3. added a commit that references this issue on Jul 14, 2026
  4. thehoff commented on Aug 15, 2026

    @thehoff
    OwnerAuthor

    Resolved by d58bc77 (harden(supply-chain): detect bun/pdm/pipenv/conda/mamba installs (#144)) + follow-up hardening rounds bcc4c32, ce031ba, 4894adc. All acceptance criteria met; full suite 3578 passed / 0 failed. Codex add-ons (pnpm/poetry update, brew install) included per #144 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions