Add npm release-date anachronism checks - #86
Open
manrods wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #81.
Design
detected_skillsrecords a slug but not which package or ecosystem produced it, so this PR does not infer npm provenance broadly. Instead,signatures/package-map.jsonadds an auditednpmReleaseCheckPackageslist for four unambiguous package keys:better-auth@lemonsqueezy/lemonsqueezy.js@paddle/paddle-js@paddle/paddle-node-sdkThe package-to-slug relationship still comes only from
map; the new list does not detect skills. Tests require every map key for an eligible slug to be audited and exclude Tier 2-produced slugs.The checker:
registry.npmjs.orghosttime.createdPrivacy boundary
Privacy gate: run
registry.npmjs.orgnpm test/npm run typecheck/npm run build: greenhttps://registry.npmjs.orgconstant in the new checker module; that module contains no network primitive and production transport remains in allowlistedsubmit.ts/http-client.tsNetwork order remains explicit:
Declining causes zero network calls. A confirmed-public remote blocks before npm. The exact reviewed JSON remains byte-for-byte equal to the uploaded body.
Output behavior
--confirm-uploadhelp now states that it authorizes upload and subsequent eligible npm lookups.Verification
npm test— 54 files, 911 tests passednpm run typecheck— passednpm run build— passedgit diff --check— cleanVERDICT: APPROVEDNo bundle field, schema file, taxonomy entry, Redential upload header/body, runtime dependency, or postinstall script changed.