feat(constructive-pnpm-policy): our policy data + weekly inventory refresh - #108
Merged
Conversation
…y inventory Data only — no code, no bin, no install scripts — so our workspaces pin one reviewed exemption list instead of each keeping a copy. Refreshed weekly by a workflow that opens a PR rather than committing: a name landing in the inventory is a name that stops being quarantined.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
The data half of the
pnpm-policysplit:@constructive-io/pnpm-policyships our config and the generated inventory of everythingmaintainer:pyramationpublishes, so our workspaces pin one reviewed exemption list instead of each keeping a copy.Data only — no
main, nobin, no install scripts. A package whose job is to say "these names skip the quarantine" should not also be able to run anything, so it exports two files and nothing else:{ "exports": { "./pnpm-policy.yaml": "./pnpm-policy.yaml", "./inventory.json": "./inventory.json" } }Real numbers from the generated inventory: 1106 packages → 6 scope globs + 891 names, and against constructive-db's lockfile that resolves to 6 globs + 70 names, 821 omitted. Verified end-to-end from a scratch consumer that resolves the inventory out of
node_modules:The refresh workflow
Weekly +
workflow_dispatch, throttled at 1000 ms (5 requests, ~8s). It opens a PR instead of committing, because a name landing in the inventory is a name that stops being quarantined, and that deserves a human glance. Permissions are justcontents: write+pull-requests: write— the npm search endpoint is anonymous, so no registry token. No third-party actions,ghonly.generatedAtchanges on every run, so a timestamp-only diff is suppressed rather than opening a weekly no-op PR:Scopes claimed
Six:
@constructive-io @constructive-db @launchql @pgpm @pgpmjs @pgsql. I checked each for foreign publishers (0 found across 12 candidate scopes), but that's best-effort — npm has no "list a scope" API — so claiming is a deliberate line in the config rather than something the tool infers.@agentic-kit @decryption @inquirerer @interweb @kubernetesjs @lql-pgalso look wholly ours and are noted in a comment; they're currently covered by name via the inventory, so leaving them unclaimed costs nothing except a refresh when a new package appears there.Not here
Nothing in constructive-db was touched — adopting the policy there (it currently runs
minimumReleaseAge: 0) is the next PR.Link to Devin session: https://app.devin.ai/sessions/ffa3b012deac4eb7afb8f49a9af9f9ca
Requested by: @pyramation