Skip to content

Pin verified npm artifact identity before install - #31

Open
solnikhil wants to merge 2 commits into
mainfrom
codex/issue-24
Open

Pin verified npm artifact identity before install#31
solnikhil wants to merge 2 commits into
mainfrom
codex/issue-24

Conversation

@solnikhil

@solnikhil solnikhil commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • resolve registry ranges and tags to one exact version before user confirmation
  • fetch the candidate with npm pack into an isolated cache, then require exact agreement between metadata SRI, pack integrity, tarball URL, and independently streamed bytes
  • recheck exact-version registry metadata after confirmation and install the exact version from the verified cache
  • persist immutable package identity in pin schema v2, with explicit v1 migration behavior
  • hard-fail same-subject, same-version integrity or tarball mutation while preserving manual review for package, namespace, registry, or version changes
  • document the trust boundary: prefer-offline depends on npm honoring cached SRI; existing satisfied node_modules and transitive dependencies are outside this root-artifact guarantee

Verification

  • npm test: 398/398 passing
  • live Windows project/global E2E using zuraai.xyz@*
  • live range resolution using lodash@^4 selected exact 4.18.1
  • package verification passed
  • npm audit: 0 vulnerabilities
  • clean diff check passed

Closes #24

Copilot AI lite review requested due to automatic review settings August 23, 2026 17:32

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.

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f0f24117-0f4a-4eef-8ed5-f174b108c6fd


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Feature: resolve and pin immutable npm artifact identity before install

2 participants