Skip to content

feat(constructive-pnpm-policy): claim @latex-kit and refresh the inventory - #151

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
feat/latex-kit-inventory
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
feat/latex-kit-inventory

Conversation

@pyramation

@pyramation pyramation commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds @latex-kit to the owned scopes and refreshes inventory.json from npm (pnpm run refresh), so Constructive workspaces stop holding our own new releases for two days.

Added

  • Scope @latex-kit (we own it; latex-kit itself is listed by name).
  • Packages published since the August inventory: latex-kit, decryption, @decryption/*, @wavegrid/*, @fbp/*, more @agentic-kit/*, blocks-*, graphile-* and others. 942 names in total, up from 891. The throwaway @pyramation/test-publish-2fa is left out on purpose.

Kept
The refresh dropped 9 names that pyramation still maintains (@libpg-query/browser, @libpg-query/v13, @pgql/parse, @pyramation/libpg-query, @pyramation/libpg-query-wasm, @pyramation/pgsql-parser, @pyramation/pgsql-parser-plpgsql, libpg-query-m1-native, libpg-query-win). npm's search index just stopped returning them. I put them back, so this PR only adds names.

Once this is released, latex-kit can drop the @latex-kit scope it declares in its own pnpm-policy.yaml.

Summary by CodeRabbit

  • Chores
    • Expanded the package inventory with additional scoped and unscoped package names.
    • Updated package policy to recognize the LaTeX Kit namespace and exempt its packages from the third-party release wait.

…ntory

Adds the @latex-kit scope and the packages published since August
(latex-kit, decryption, @wavegrid/*, @fbp/*, more @agentic-kit/*).
Names npm's search index no longer returns but that pyramation still
maintains (@libpg-query/*, @pyramation/pgsql-parser, …) are kept.
@luxor-code-review

luxor-code-review Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 1 medium

💬 Inline comments (1)


This change refreshes the generated publish-policy inventory and policy file, extending first-party scope coverage.

Files Change
packages/constructive-pnpm-policy/pnpm-policy.yaml Adds the @latex-kit scope and new package entries to the publish policy allowlist.
packages/constructive-pnpm-policy/inventory.json Regenerated inventory with the @latex-kit scope, ~50 new package entries, and an updated generatedAt timestamp.

Both files are declarative data/config only; no executable logic changed.

Reviewed commit: 44ff688

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The package inventory adds names across multiple namespaces and updates its generated timestamp. The pnpm policy adds @latex-kit to the scopes exempt from the release wait.

Changes: Package policy inventory

Layer / File(s) Summary
Refresh inventory and scope exemption
packages/constructive-pnpm-policy/inventory.json, packages/constructive-pnpm-policy/pnpm-policy.yaml
The inventory timestamp and package entries are updated. @latex-kit is added to the inventory scopes and to the policy scopes exempt from the release wait.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to 44ff6

This change refreshes the first-party package inventory and exempts the @latex-kit scope from the release wait. It only adds names, so existing exemptions are unchanged, and no merge-blocking risk is evident.

Security architecture risk: Low · up to 44ff6

The new policy lets every current and future @latex-kit package skip the two-day wait. That is appropriate if only Constructive can publish to the scope, as the PR states, but the policy does not verify that condition. The change does not grant publishing access or permission to run install scripts.

Retained concerns

  • Low · security · inferred: The base policy did not grant a wildcard exemption for @latex-kit. The head policy exempts the whole scope without verifying the exclusive publishing control its own policy requires. If an outside account can publish a package in that scope, adopting workspaces that resolve that package lose the two-day safeguard for its new releases.
Security review details

Security Blast Radius

  • inferred — The wildcard can affect any workspace that adopts and applies the revised policy, including workspaces that do not currently use an @latex-kit dependency. A package is affected when that workspace resolves it; workspaces that keep the prior policy pin do not inherit this change from the shared package.

Trust Boundaries and Controls

  • observed — The policy requires exclusive Constructive publishing authority before claiming a scope. The generator trusts the scope declaration as configuration; optional registry verification applies to undeclared scopes instead.

Hardening Proposals

  • proposed — Confirm and record registry-side publishing authority before adopting the wildcard. If exclusive control cannot be established, use reviewed exact-name exemptions instead.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two main changes: claiming the @latex-kit scope in the pnpm policy, and refreshing inventory.json. The changeset adds @latex-kit to pnpm-policy.yaml and updates the inventory with …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the two main changes: claiming the @latex-kit scope in the pnpm policy, and refreshing inventory.json. The changeset adds @latex-kit to pnpm-policy.yaml and updates the inventory with new package names and a new timestamp. The title is specific and matches the primary change. It does not mention the restored pyramation packages, but that detail is not required.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 08b6cdd and 44ff688.

Files selected for processing: 2

  • packages/constructive-pnpm-policy/inventory.json
  • packages/constructive-pnpm-policy/pnpm-policy.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@luxor-code-review luxor-code-review Bot 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.

Regenerates the pnpm publish-policy inventory, adding the @latex-kit scope and ~50 new package entries to the allowlist.

Key findings

"@pyramation/some-lerna-module",
"@pyramation/storybook-addon-chakra-theme",
"@pyramation/stream-to-s3",
"@pyramation/test-publish-2fa",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 security · medium

Test-publish package added to release-age exempt inventory

@pyramation/test-publish-2fa was added to the first-party inventory at packages/constructive-pnpm-policy/inventory.json:540, which the policy generator emits as an exact minimumReleaseAgeExclude entry (packages/pnpm-policy/src/policy.ts:108-130). A package whose name marks it as a publish-flow test now skips the 2-day quarantine on every release, so an accidental or compromised publish under it is immediately installable. Test-only publish targets should stay out of the exemption list; the neighboring @pyramation/testingnpmmodule and @pyramation/some-lerna-module entries show the same pattern already existed, and this change extends it.

📋 Prompt for AI Agents

In packages/constructive-pnpm-policy/inventory.json line 540, remove the entry "@pyramation/test-publish-2fa". Additionally, in the generator run by pnpm run refresh (packages/pnpm-policy/src/inventory.ts, buildInventory), add a filter that excludes package names matching test-publish/known test patterns from the generated first-party inventory so regeneration does not re-add it. Rationale: first-party entries are emitted as minimumReleaseAgeExclude, and a test-publish package must not bypass the 2-day quarantine.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Data-only change (inventory + one scope); CI green.

  • Spot-checked new names on npm (latex-kit, decryption, @decryption/accounts, @wavegrid/cli, @fbp/core, graphile-storage-registry, json-renderer, flow-to-blocks, @interchain-kit/eightsaf-extension): all list pyramation as a maintainer.
  • Diff is additions only, so the 9 names npm search stopped returning are kept as described.
  • @latex-kit has no published packages yet; claiming the scope ahead of time is fine since we own it.
  • Luxor's note on @pyramation/test-publish-2fa: real but minor. It's ours and follows the existing @pyramation/testingnpmmodule pattern; excluding test-publish names in the generator would be a small follow-up, not a blocker.

Written by Devin

@devin-ai-integration
devin-ai-integration Bot merged commit c657ed8 into main Nov 26, 2026
65 checks passed
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.

1 participant