Skip to content

guarddog: too slow for the check budget — needs nightly CI job or per-package@version cache #205

Closed

Description

@sandstream

Problem

guarddog (malware) is opt-in and installed, but even on kit's own 12 direct deps a
guarddog npm verify package.json run takes ~5 minutes (~25s/package: tarball download

  • per-package semgrep heuristics). kit's check timeout is 300s, and the current target
    is package-lock.json (12,546 packages) — guaranteed timeout, so the check honestly
    reports "returned no results — UNVERIFIED" every time. Loud, but never useful.

Proposal

  1. Target direct deps — swap candidate order to package.json first; transitives are
    covered by bumblebee + osv-scanner. Say so in the detail line.
  2. Per-package@version verdict cache (~/.kit/guarddog-cache.json): only new/changed
    direct deps are scanned, so steady-state runs are seconds. Cache hit = verified-at
    timestamp in the detail (no false "just scanned" claim).
  3. Nightly CI job in security.yml runs the full uncached sweep with a generous timeout,
    so the deep scan happens continuously without taxing the local gate.

Found while root-causing the not-run rows in kit coverage --verify (4.0.0).

🤖 Generated with Claude Code

Activity

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