Skip to content

Verify dependency fixes with scan and test evidence - #7

Merged
hamza-paracha merged 1 commit into
mainfrom
warden/dependency-verification-direction
Oct 15, 2026
Merged

hamza-paracha merged 1 commit into
mainfrom
warden/dependency-verification-direction

Conversation

@hamza-paracha

Copy link
Copy Markdown
Owner

Dependency patches need evidence that the intended advisory disappeared and the candidate still passes its configured tests. This adds warden verify for single-package npm repositories: it exports two committed revisions without touching the checkout, performs fresh npm-audit scans, checks target advisories and security regressions, runs tests, and writes atomic JSON/Markdown evidence with commit IDs, dependency-file hashes, commands, and outcomes.

Docker is the default runner, with image IDs pinned after inspection, capability/resource restrictions, and offline tests. Trusted repositories can explicitly opt into host execution. Missing targets/tests, scanner failures, timeouts, unsupported scope, and changed dependency files produce an incomplete result rather than a pass. A lazy logger fixes an existing CLI-import side effect that created logs in the target repository.

The README, website copy, package metadata, and research/specification now focus on dependency verification. v1.10.0 is a source preview; this PR does not publish to npm. Compatible development dependency updates remove high/critical audit findings; moderate development-tool advisories remain, and runtime audit is clean.

Validation:

  • Build and formatting checks passed.
  • All 216 tests passed across 29 suites; 25 verification tests cover correct fixes, remaining targets, regressions, missing evidence, scanner/test failures, provenance, checkout preservation, and execution boundaries.
  • Existing and packaged CLI smoke tests passed, including the new verification command.
  • A live, maintainer-created lodash fixture verified 10 resolved advisory targets and passing tests with the trusted-host runner; source checkout remained unchanged.
  • Production dependency audit: zero findings.
  • Added live Docker verification to CI; Docker was not started locally.

Initial boundaries: npm v2/v3 lockfiles, single-package repos, public npm registry, regular tracked files, no signed attestations or automatic merging. Broader support and adoption pilots remain future work.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 15:56
@vercel

vercel Bot commented Oct 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
warden Ready Ready Preview Oct 15, 2026 3:56pm UTC

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@hamza-paracha
hamza-paracha merged commit fd5e218 into main Oct 15, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
Preview — 33d940e7 Deployed Oct 15, 2026 by vercel[bot]
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.

2 participants