Skip to content

feat(pnpr): verify published manifests against their archives - #17552

Merged
zkochan merged 28 commits into
mainfrom
pnpr/publish-manifest-verification
Nov 2, 2026
Merged

zkochan merged 28 commits into
mainfrom
pnpr/publish-manifest-verification

Conversation

@zkochan

@zkochan zkochan commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Implements Publish-time manifest verification for pnpr (pnpm/rfcs#47, including the pnpm/rfcs#60 amendment that narrows the node-gyp rebuild exception).

Part of pnpm/tasks#244.

A hosted publish now compares each version's submitted metadata with the package.json inside its archive. A disagreement is rejected, and the version is served as the archive states it.

  • Profile (pnpm-package-manifest). InstallManifest::derive and compare implement npm-install-manifest/1. The install-critical fields are name, version, the dependency maps, peerDependenciesMeta, bundleDependencies, os/cpu/libc, engines, bin with directories.bin expanded, the lifecycle scripts including the implicit node-gyp rebuild, hasInstallScript, and hasShrinkwrap. The normalizations come from the RFC's survey. Shared JSON fixtures under pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/ define the behavior, so the pnpm v12 install-time check can reuse both the code and the fixtures.
  • Archive reading (pnpm-tarball). read_publication_archive returns the exact manifest bytes an installer would select, the manifest and shrinkwrap digests, the root binding.gyp flag, and the file list. It refuses unsafe paths on any entry, links and directories included, two entries that extract to the manifest (also differing only in case), a manifest that is a link, data after the end-of-archive marker, a global PAX header that sets size, path, or linkpath, more than 200,000 entries, file paths adding up to more than 32 MiB, and a missing or oversized manifest.
  • Publication (pnpr). Staging derives and compares the manifest after the tarball is verified and before anything is committed. A mismatch is a 400 (manifest_mismatch) naming the package, version, profile, and fields. An archive that does not decode is now a 400 too. Before this change it was published without a tar hash. The archive must also name the package and version it is published as. A tolerated node-gyp rebuild is reported in an npm-notice header, which the atomic publication response from feat(pnpr): commit SQLite publications atomically and idempotently #17553 and a staged approval now carry, within 2 KiB per response.
  • Storage. The stored version takes its install-critical fields from the archive-derived manifest, name and version included. It always carries hasInstallScript and _hasShrinkwrap. _archiveManifest: {profile, packageJson, npmShrinkwrap} records the profile and the archive's input digests. With the documents backend, the record stays in the stored document. With SQLite metadata (feat(pnpr): keep hosted package metadata in SQLite #17551), it is the version's accepted_manifests row: profile is the row's profile, and the digests are its new inputs column. The manifest column holds no second copy. Rendering puts the record back, and a restatement must match it. The schema version moves to 2 because the table changed. SQLite metadata is unreleased, so no released database is affected.
  • Build metadata. A version is published without semver build metadata, as npm publishes it. The profile's fixture publishes archive 1.0.0-canary.1+abc as 1.0.0-canary.1. A publish slot with build metadata never matches the derived version. A publisher can therefore never claim the +r<N> reserved for registry revisions, in the slot or in the served version.
  • No migration. pnpr is experimental with no compatibility promise. Versions published before this check are not re-derived or reported.

The pnpr test suite's publish fixtures now carry real package archives (npm_tgz, publishable_tgz), since every publish is verified.

Tests run locally

  • Every pnpr-* crate with pnpm-registry-mock, plus pnpm-package-manifest and pnpm-tarball, in one selection: 2162 passed.

Not done here

  • A staged publish is verified when it is approved, not when it is staged.
  • A retried publish gets its recorded outcome without the original npm-notice headers.
  • Abbreviated (install-v1) metadata still drops _hasShrinkwrap, as pnpr-upstream deliberately does today. The full packument carries it.
  • Re-deriving under a later profile, keeping the result beside the accepted manifest, and selecting the profile per response are left for when a second profile exists.
  • Release records (feat: pnpr's own package document with release records (split packuments) #17556) do not carry the accepted manifest's interpretation and inputs yet. The release-records RFC defines those fields beside the record's purl and .tgz digest, which belong to its own implementation. The full packument and the version document carry _archiveManifest.
  • The archive is decoded twice per publish: once for its tar integrity and once for its manifest.
  • Fixtures are modelled on the survey's cases with placeholder names. They are not byte-for-byte publish documents captured from npm publish, pnpm publish, and lerna.

Squash Commit Body

A hosted npm publish now derives each version's install-critical fields
from the package.json inside its archive and compares them with the
submitted version metadata under the npm-install-manifest/1
interpretation profile (pnpm/rfcs#47). A disagreement, an archive that
does not decode, and an archive whose manifest is ambiguous are rejected
with a 400 that names the package and the differing fields. The one
tolerated difference is a submitted `node-gyp rebuild` that the archive
cannot run. It is dropped and reported in an npm-notice header.

The profile lives in pnpm-package-manifest (InstallManifest) with shared
JSON fixtures, so the pnpm v12 install-time check can reuse it. Both
sides of a comparison go through the normalizations npm's prepare() and
npm 9's normalize-package-data apply: bin syntax, directories.bin,
optional dependencies copied into dependencies, empty maps,
engines.node "*", version cleaning and build metadata, git shorthand,
and bundleDependencies: true. pnpm-tarball's read_publication_archive
selects the manifest an installer would, and refuses unsafe paths,
duplicate or case-colliding manifests, linked manifests, data after
the end-of-archive marker, global PAX headers that override entry sizes
or paths, too many entries, and too many path bytes.

The stored version takes its install-critical fields from the archive,
always carries hasInstallScript and _hasShrinkwrap, and records the
profile and the package.json and npm-shrinkwrap.json digests in
_archiveManifest. With SQLite metadata, that record is the version's
accepted_manifests row: its profile and its inputs column. A version is
published without semver build metadata, so a publisher cannot claim
the +rN reserved for registry revisions.

Part of pnpm/tasks#244.

Checklist

  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.
  • Updated the documentation if needed.

Written by an agent (Claude Code, claude-opus-5-5).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • npm package publishing now verifies submitted package metadata against the uploaded archive. Invalid or ambiguous archives and mismatched package details are rejected.
    • Accepted install-critical metadata is served from the archive, with archive integrity information recorded. Staged publishes receive the same verification when approved.
    • A limited node-gyp rebuild install-script difference can be accepted with an npm-notice response header; that script is not served.
  • Documentation
    • Added guidance on publish-time verification, validation rules, and stored archive metadata.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 7b7fd77 and 4edb8a2.

Files selected for processing: 2
  • pnpr/crates/pnpr/src/server/publishing/atomic.rs
  • pnpr/crates/pnpr/src/server/publishing/tests.rs

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

Walkthrough

The pull request adds npm publication archive inspection and manifest verification. It normalizes install metadata, rejects invalid archives and unaccepted differences, stores archive-derived metadata, forwards tolerated-difference notices, updates SQLite storage, and changes publish tests to use valid npm tarballs.

Changes: Publish-time manifest verification

Layer / File(s) Summary
Publication archive reader
pnpm/crates/tarball/...
The archive reader validates paths and archive limits, rejects ambiguous root documents, and returns manifest and shrinkwrap integrity, file paths, and root binding.gyp status.
Install manifest profile
pnpm/crates/package-manifest/...
The npm-install-manifest/1 profile normalizes identity, dependencies, platform fields, binaries, and lifecycle scripts. It compares submitted metadata with archive-derived metadata and records the tolerated node-gyp rebuild difference.
Publish verification and notices
pnpr/crates/error/..., pnpr/crates/pnpr/src/server/publishing/...
Publishing verifies archives and publication-slot versions, writes archive-derived install fields, returns ManifestMismatch for unaccepted differences, and forwards accepted notices in npm-notice headers.
Accepted manifest storage and rendering
pnpr/crates/storage/...
SQLite stores the accepted interpretation, input digests, and accepted digest. Packument rendering restores _archiveManifest records.
Verification coverage and supporting changes
pnpr/crates/pnpr/tests/..., pnpm/crates/package-manifest/fixtures/..., pnpr/docs/..., .changeset/...
Tests cover archive parsing, manifest comparison, publish outcomes, metadata storage, and existing publishing flows. Documentation and the changeset describe verification behavior.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Publisher
  participant pnpr
  participant ArchiveReader
  participant InstallManifest
  participant SQLite
  Publisher->>pnpr: submit publish document and tarball
  pnpr->>ArchiveReader: decode and inspect archive
  ArchiveReader-->>pnpr: return manifest and archive facts
  pnpr->>InstallManifest: derive and compare manifest fields
  InstallManifest-->>pnpr: return derived fields or mismatch
  pnpr->>SQLite: store accepted interpretation and metadata
  SQLite-->>pnpr: return committed publish metadata
  pnpr-->>Publisher: return response and optional npm-notice
Loading

Suggested labels: product: pacquet, product: pnpr

Suggested reviewers: qodo-code-review

Merge Risk: Minimal · up to 4edb8

Staged approvals now preserve accepted manifest-difference notices, and no concrete merge-blocking risk remains.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                    pr
-----                                            ----                                    --
lockfile/parse_pnpm_lock                         1.15     15.6±1.56ms    24.0 MB/sec     1.00     13.6±1.08ms    27.5 MB/sec
packument/parse                                  1.09     47.7±4.84µs  1391.3 MB/sec     1.00     43.8±0.66µs  1515.5 MB/sec
tarball/download_dependency                      1.08  1035.7±166.29µs     4.1 MB/sec    1.00  961.2±174.16µs     4.4 MB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00   237.7±15.19ms 67.3 KElem/sec     1.02   242.5±18.83ms 66.0 KElem/sec
version_pick/repeated_ranges_file                1.04      6.0±0.55ms  5.2 KElem/sec     1.00      5.8±0.83ms  5.4 KElem/sec
version_pick/repeated_ranges_raw                 1.00      4.9±0.35ms  6.4 KElem/sec     1.04      5.1±0.41ms  6.1 KElem/sec
workspace_resolution/hoist_heavy                 1.00   406.5±42.61ms        ? ?/sec     1.24   505.0±45.24ms        ? ?/sec
workspace_sort/chained_projects                  1.00     19.6±4.94ms        ? ?/sec     1.72     33.8±6.19ms        ? ?/sec

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Same-run regression check

HEAD and main are measured on the same runner. The tolerance is 5% of the main median or 2 ms, whichever is larger. A regression requires both the median slowdown and the gap between the fastest retained HEAD sample and slowest retained main sample to exceed this tolerance, after trimming up to 10% from each tail. Suspected regressions are rerun once with target order reversed and only fail if reproduced. This conservative noise guard is not a statistical confidence interval.

Inconclusive rows do not fail the check. They remain visible for performance review. Bencher retains absolute minimum timings for historical tracking; historical alerts do not gate this PR. Sequential measurements can still be affected by runner drift.

Scenario Engine main median HEAD median Change Tolerance Result
isolated-fresh-restore-cold-cache-cold-store pacquet 2677.77 ms 2702.98 ms 0.9% 133.89 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr 1518.75 ms 1629.90 ms 7.3% 75.94 ms Inconclusive (overlapping samples)
isolated-fresh-restore-hot-cache-hot-store pacquet 400.13 ms 454.28 ms 13.5% 20.01 ms Inconclusive (overlapping samples)
isolated-fresh-restore-hot-cache-hot-store pnpr 362.58 ms 411.42 ms 13.5% 18.13 ms Inconclusive (overlapping samples)
isolated-repeat-install-hot-cache-hot-store pacquet 11.84 ms 14.08 ms 18.9% 2.00 ms Inconclusive (overlapping samples)
isolated-repeat-install-hot-cache-hot-store pnpr 12.05 ms 11.82 ms -1.9% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet 14.77 ms 14.14 ms -4.2% 2.00 ms Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr 12.27 ms 13.60 ms 10.8% 2.00 ms Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet 2711.06 ms 2910.30 ms 7.3% 135.55 ms Inconclusive (overlapping samples)
isolated-fresh-install-cold-cache-cold-store pnpr 1552.37 ms 1611.91 ms 3.8% 77.62 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet 616.10 ms 618.87 ms 0.4% 30.81 ms Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr 378.64 ms 366.93 ms -3.1% 18.93 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet 1801.49 ms 1698.48 ms -5.7% 90.07 ms Within tolerance
isolated-fresh-install-cold-cache-hot-store pnpr 348.46 ms 342.48 ms -1.7% 17.42 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet 297.16 ms 282.04 ms -5.1% 14.86 ms Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr 100.93 ms 102.76 ms 1.8% 5.05 ms Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet 321.63 ms 331.64 ms 3.1% 16.08 ms Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet 111.83 ms 109.74 ms -1.9% 5.59 ms Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet 99.00 ms 99.93 ms 0.9% 4.95 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet 4866.27 ms 5070.02 ms 4.2% 243.31 ms Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr 3610.07 ms 3689.07 ms 2.2% 180.50 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet 173.02 ms 174.71 ms 1.0% 8.65 ms Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr 180.33 ms 177.13 ms -1.8% 9.02 ms Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet 1422.79 ms 1426.47 ms 0.3% 71.14 ms Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet 46.22 ms 48.73 ms 5.4% 2.31 ms Inconclusive (overlapping samples)

Same-run syscall check

Each install runs 2 more times per revision, untimed, under strace --follow-forks --summary-only. A file syscall regresses when HEAD's fewest calls exceed main's most by more than 2% of main or 50 calls, whichever is larger. mkdir and mkdirat count only the calls that created a directory, since concurrent installs fail a varying number with EEXIST. A syscall whose identical runs differ by more than that tolerance is reported unstable and not gated, unless HEAD's fewest calls also exceed main's most by more than the tolerance plus that difference. Each scenario lists its largest change relative to its tolerance and every row that is not within tolerance.

Scenario Engine Syscall main calls (max) HEAD calls (min) Change Tolerance Identical-run spread Result
isolated-fresh-restore-cold-cache-cold-store pacquet symlink 3892 3895 +0.1% 77 6 Within tolerance
isolated-fresh-restore-cold-cache-cold-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-hot-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-repeat-install-cold-cache-hot-store pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-cold-store pnpr readlink 15276 15301 +0.2% 305 17 Within tolerance
isolated-fresh-install-hot-cache-hot-store pacquet statx 52318 52413 +0.2% 1046 139 Within tolerance
isolated-fresh-install-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-install-cold-cache-hot-store pacquet readlink 15742 15553 -1.2% 314 962 Unstable (identical runs differ by 962, not gated)
isolated-fresh-install-cold-cache-hot-store pnpr readlink 15299 15301 +0.0% 305 15 Within tolerance
isolated-fresh-resolve-hot-cache-offline pacquet fstat 1381 1394 +0.9% 50 3 Within tolerance
isolated-fresh-resolve-hot-cache-offline pnpr access 8 8 +0.0% 50 0 Within tolerance
isolated-peer-heavy-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-linked-workspace-resolve-hot-cache-offline pacquet access 8 8 +0.0% 50 0 Within tolerance
isolated-injected-workspace-repeat-install-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pacquet access 11 11 +0.0% 50 0 Within tolerance
isolated-fresh-restore-cold-cache-cold-store-cold-pnpr pnpr access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pacquet access 11 11 +0.0% 50 0 Within tolerance
gvs-fresh-restore-hot-cache-hot-store pnpr access 11 11 +0.0% 50 0 Within tolerance
store-only-unlocked-direct-deps-cold-cache-hot-store pacquet access 8 8 +0.0% 50 0 Within tolerance
cargo-repeat-install-hot-cache-hot-store pacquet access 22 22 +0.0% 50 0 Within tolerance

Integrated-Benchmark Report (Linux)

Commit: 4edb8a2bfcad

Compared against main at: 00f739e7678c

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm; the linked, injected, and Cargo workspace scenarios compare current Rust against main Rust. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ. Bencher tracks absolute minimum latency; PR regression checks compare HEAD and main samples from the same runner. Historical timing alerts do not gate PRs.

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.698 ± 0.110 2.552 2.877 1.73 ± 0.15
pacquet@main 2.764 ± 0.198 2.599 3.155 1.77 ± 0.18
pnpr@HEAD 1.675 ± 0.167 1.470 2.009 1.07 ± 0.13
pnpr@main 1.560 ± 0.115 1.438 1.735 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.69772254688,
      "stddev": 0.1096419129736341,
      "median": 2.7029777698800004,
      "user": 2.9951802799999996,
      "system": 2.3516496200000003,
      "min": 2.55238323238,
      "max": 2.8770422413800003
    },
    {
      "command": "pacquet@main",
      "mean": 2.7640684370799997,
      "stddev": 0.1981789419250487,
      "median": 2.67776622338,
      "user": 2.81301708,
      "system": 2.22815502,
      "min": 2.59889433338,
      "max": 3.15534793138
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.67511634518,
      "stddev": 0.16689809491634988,
      "median": 1.62990028038,
      "user": 2.59243368,
      "system": 2.15807022,
      "min": 1.4699614893800002,
      "max": 2.00937520438
    },
    {
      "command": "pnpr@main",
      "mean": 1.5597050375800001,
      "stddev": 0.11517993786100512,
      "median": 1.5187500948800001,
      "user": 2.47139528,
      "system": 2.10280022,
      "min": 1.4376569513800002,
      "max": 1.7349431553799999
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 481.1 ± 83.4 410.1 702.0 1.33 ± 0.24
pacquet@main 419.2 ± 52.9 352.7 494.8 1.16 ± 0.16
pnpr@HEAD 428.9 ± 72.3 351.0 580.1 1.18 ± 0.21
pnpr@main 362.2 ± 17.7 329.7 393.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.4810589010600001,
      "stddev": 0.08344289532650571,
      "median": 0.45427534476000003,
      "user": 0.5401377199999999,
      "system": 1.0083707800000001,
      "min": 0.41011121376,
      "max": 0.7020377387600001
    },
    {
      "command": "pacquet@main",
      "mean": 0.41921253936,
      "stddev": 0.05293173387175139,
      "median": 0.40012781176,
      "user": 0.49784841999999996,
      "system": 0.89626018,
      "min": 0.35267681576,
      "max": 0.49484955476000003
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.42885532636000007,
      "stddev": 0.07229778015934571,
      "median": 0.41141744276000003,
      "user": 0.44826332,
      "system": 0.91421338,
      "min": 0.35102447876,
      "max": 0.5801497657600001
    },
    {
      "command": "pnpr@main",
      "mean": 0.36224056666,
      "stddev": 0.01771787092787672,
      "median": 0.36258396426,
      "user": 0.40733531999999995,
      "system": 0.8151339799999999,
      "min": 0.32970830976,
      "max": 0.39323656276
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 14.0 ± 1.9 10.4 20.4 1.16 ± 0.19
pacquet@main 12.3 ± 1.3 10.0 15.6 1.01 ± 0.14
pnpr@HEAD 12.1 ± 1.2 10.4 16.8 1.00
pnpr@main 12.3 ± 1.4 10.1 17.3 1.01 ± 0.15
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.01402477119567567,
      "stddev": 0.0018799217597403612,
      "median": 0.01407725752,
      "user": 0.007879191891891891,
      "system": 0.0074655742702702714,
      "min": 0.01036395852,
      "max": 0.020420923520000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.01226026496692738,
      "stddev": 0.0012778872237407249,
      "median": 0.01184128352,
      "user": 0.006767060893854748,
      "system": 0.006545616312849159,
      "min": 0.00997208252,
      "max": 0.015555326520000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.012131961328612441,
      "stddev": 0.001170878753015666,
      "median": 0.01182140052,
      "user": 0.006816597607655502,
      "system": 0.006353598851674644,
      "min": 0.01039987852,
      "max": 0.01678079852
    },
    {
      "command": "pnpr@main",
      "mean": 0.012268756006842112,
      "stddev": 0.0013682732188895128,
      "median": 0.012052526019999999,
      "user": 0.00705391578947368,
      "system": 0.006288627017543861,
      "min": 0.01005783852,
      "max": 0.01729220952
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 14.4 ± 2.6 10.7 26.9 1.16 ± 0.26
pacquet@main 15.1 ± 2.0 12.1 22.0 1.22 ± 0.23
pnpr@HEAD 14.1 ± 2.3 10.4 23.0 1.13 ± 0.24
pnpr@main 12.5 ± 1.7 9.6 17.6 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.014424942204901963,
      "stddev": 0.002643812252997445,
      "median": 0.0141442747,
      "user": 0.008319425882352944,
      "system": 0.007111577058823529,
      "min": 0.0107284032,
      "max": 0.026851080200000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.01514914881818182,
      "stddev": 0.0019755743923351517,
      "median": 0.014770632700000001,
      "user": 0.008879274545454547,
      "system": 0.007483115272727271,
      "min": 0.0120884812,
      "max": 0.0219922092
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.014079626858959544,
      "stddev": 0.0022982909435446705,
      "median": 0.0136005832,
      "user": 0.008151300924855491,
      "system": 0.007184596994219656,
      "min": 0.010430277200000001,
      "max": 0.023049351200000002
    },
    {
      "command": "pnpr@main",
      "mean": 0.012453365132989695,
      "stddev": 0.001673455297573515,
      "median": 0.0122743157,
      "user": 0.007717106597938143,
      "system": 0.005950104123711342,
      "min": 0.0095638592,
      "max": 0.017566556200000003
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.894 ± 0.112 2.723 3.027 1.79 ± 0.14
pacquet@main 2.762 ± 0.138 2.664 3.123 1.71 ± 0.14
pnpr@HEAD 1.634 ± 0.099 1.520 1.806 1.01 ± 0.09
pnpr@main 1.615 ± 0.109 1.517 1.790 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.8939556611000006,
      "stddev": 0.1119106193525415,
      "median": 2.9103025112000003,
      "user": 3.22098862,
      "system": 2.2912651400000006,
      "min": 2.7229334897000004,
      "max": 3.0270499967
    },
    {
      "command": "pacquet@main",
      "mean": 2.7622031523999997,
      "stddev": 0.13833328066852776,
      "median": 2.7110627612,
      "user": 2.8810222199999997,
      "system": 2.0651805399999996,
      "min": 2.6638779147,
      "max": 3.1234591167
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.6343831365000003,
      "stddev": 0.0989033788087498,
      "median": 1.6119129077,
      "user": 2.06214402,
      "system": 1.7745134400000002,
      "min": 1.5202683477,
      "max": 1.8056074267000002
    },
    {
      "command": "pnpr@main",
      "mean": 1.6149199500000002,
      "stddev": 0.10873446538015154,
      "median": 1.5523669407000003,
      "user": 1.9978399199999994,
      "system": 1.8423749399999998,
      "min": 1.5167066557000002,
      "max": 1.7900912207000002
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 636.3 ± 80.1 545.2 819.6 1.74 ± 0.25
pacquet@main 618.7 ± 31.4 566.5 686.0 1.69 ± 0.14
pnpr@HEAD 365.9 ± 25.1 328.1 406.3 1.00
pnpr@main 382.3 ± 16.8 364.8 413.1 1.05 ± 0.09
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6362939379,
      "stddev": 0.0801396361006887,
      "median": 0.6188684579,
      "user": 0.9367889599999998,
      "system": 1.2270982,
      "min": 0.5451522839,
      "max": 0.8195760909
    },
    {
      "command": "pacquet@main",
      "mean": 0.6186726403,
      "stddev": 0.031426761036639106,
      "median": 0.6161026199,
      "user": 0.9410981599999999,
      "system": 1.1315203000000003,
      "min": 0.5665263439,
      "max": 0.6859814939000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3658604863,
      "stddev": 0.02507162496524629,
      "median": 0.36692766740000005,
      "user": 0.35776526,
      "system": 0.6833778,
      "min": 0.3281342009,
      "max": 0.40634727390000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.38232954399999997,
      "stddev": 0.016831655453941774,
      "median": 0.3786427389,
      "user": 0.38503046,
      "system": 0.7043636,
      "min": 0.3647960449,
      "max": 0.41313769990000004
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.700 ± 0.035 1.646 1.763 4.93 ± 0.23
pacquet@main 1.796 ± 0.062 1.700 1.903 5.21 ± 0.28
pnpr@HEAD 0.345 ± 0.014 0.322 0.379 1.00
pnpr@main 0.347 ± 0.019 0.325 0.387 1.01 ± 0.07
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.6995366746600002,
      "stddev": 0.03489479873804891,
      "median": 1.69848310566,
      "user": 1.0237554799999997,
      "system": 1.0154907199999998,
      "min": 1.64561970166,
      "max": 1.7625400156600002
    },
    {
      "command": "pacquet@main",
      "mean": 1.79586624806,
      "stddev": 0.06171082113076384,
      "median": 1.80148815966,
      "user": 1.14357578,
      "system": 1.11022782,
      "min": 1.69987778366,
      "max": 1.90335547366
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.34472637825999997,
      "stddev": 0.01422198965670877,
      "median": 0.34248258766,
      "user": 0.33887937999999995,
      "system": 0.6877537200000001,
      "min": 0.32167013066,
      "max": 0.37855513966
    },
    {
      "command": "pnpr@main",
      "mean": 0.34677702596,
      "stddev": 0.019160253127147683,
      "median": 0.34846465466,
      "user": 0.33140038,
      "system": 0.69716642,
      "min": 0.32464320166,
      "max": 0.38673282266000003
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 286.6 ± 16.9 265.3 311.8 2.82 ± 0.20
pacquet@main 299.5 ± 14.2 281.8 325.4 2.95 ± 0.19
pnpr@HEAD 104.7 ± 4.6 97.1 113.0 1.03 ± 0.06
pnpr@main 101.5 ± 4.2 95.9 109.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.28657527215999995,
      "stddev": 0.016858958831498967,
      "median": 0.28203749016,
      "user": 0.28987480000000004,
      "system": 0.26115411999999993,
      "min": 0.26533002616,
      "max": 0.31176979716
    },
    {
      "command": "pacquet@main",
      "mean": 0.29951489016,
      "stddev": 0.014211069129529975,
      "median": 0.29715553416,
      "user": 0.2841556,
      "system": 0.28408922,
      "min": 0.28176941516,
      "max": 0.32535247116
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.10470019101185182,
      "stddev": 0.004637803321654783,
      "median": 0.10275712616,
      "user": 0.045253911111111114,
      "system": 0.02618980888888889,
      "min": 0.09712411316,
      "max": 0.11295473916
    },
    {
      "command": "pnpr@main",
      "mean": 0.10150095780285713,
      "stddev": 0.004221482462644656,
      "median": 0.10092880466000001,
      "user": 0.04312533571428571,
      "system": 0.022700705714285712,
      "min": 0.09592353316,
      "max": 0.10905253716
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 333.5 ± 27.5 295.9 376.0 1.04 ± 0.13
pacquet@main 320.0 ± 29.6 271.1 361.3 1.00
pnpm@HEAD 5366.6 ± 375.6 4851.5 6011.5 16.77 ± 1.94
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.3334959617822222,
      "stddev": 0.02749281576435803,
      "median": 0.33164275156,
      "user": 0.36740212444444453,
      "system": 0.06692290666666667,
      "min": 0.29591210456,
      "max": 0.37598380356
    },
    {
      "command": "pacquet@main",
      "mean": 0.3200103965600001,
      "stddev": 0.02958853673775105,
      "median": 0.32162546056,
      "user": 0.3428272355555555,
      "system": 0.0660933511111111,
      "min": 0.27111449256,
      "max": 0.36133898156
    },
    {
      "command": "pnpm@HEAD",
      "mean": 5.366648790448888,
      "stddev": 0.3756040951534811,
      "median": 5.347172714559999,
      "user": 8.026235457777778,
      "system": 0.469912128888889,
      "min": 4.85152748056,
      "max": 6.01146481256
    }
  ]
}

Scenario: Isolated linker: linked-workspace resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 111.2 ± 7.8 99.0 126.2 1.00
pacquet@main 114.4 ± 13.3 95.0 140.6 1.03 ± 0.14
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.11117632101391303,
      "stddev": 0.007795589630940898,
      "median": 0.10974157184,
      "user": 0.10927883739130435,
      "system": 0.05342880956521738,
      "min": 0.09901722484,
      "max": 0.12622342784
    },
    {
      "command": "pacquet@main",
      "mean": 0.11443584230153846,
      "stddev": 0.013269171550684833,
      "median": 0.11183230984,
      "user": 0.10883854307692307,
      "system": 0.056344555384615365,
      "min": 0.09503594984,
      "max": 0.14063132884000001
    }
  ]
}

Scenario: Isolated linker: injected workspace repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 103.8 ± 12.6 91.7 137.4 1.00 ± 0.16
pacquet@main 103.7 ± 10.5 91.5 128.1 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.10383968076857142,
      "stddev": 0.01263917317145055,
      "median": 0.09993324934,
      "user": 0.04299893,
      "system": 0.06995209428571429,
      "min": 0.09171183984,
      "max": 0.13743113584
    },
    {
      "command": "pacquet@main",
      "mean": 0.10365383421931035,
      "stddev": 0.010530860482109387,
      "median": 0.09900340084,
      "user": 0.03944292137931033,
      "system": 0.07393419034482758,
      "min": 0.09152680284,
      "max": 0.12813268184
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 5.094 ± 0.231 4.792 5.605 1.40 ± 0.08
pacquet@main 4.837 ± 0.113 4.577 4.960 1.33 ± 0.06
pnpr@HEAD 3.675 ± 0.107 3.523 3.841 1.01 ± 0.05
pnpr@main 3.634 ± 0.143 3.474 3.946 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 5.094494924279999,
      "stddev": 0.2309463558317143,
      "median": 5.0700242717799995,
      "user": 3.12587166,
      "system": 2.4198201599999996,
      "min": 4.7918908262799995,
      "max": 5.605103466279999
    },
    {
      "command": "pacquet@main",
      "mean": 4.83746770658,
      "stddev": 0.11327518952536156,
      "median": 4.866270804279999,
      "user": 2.6449986599999997,
      "system": 2.09062196,
      "min": 4.57679024428,
      "max": 4.9599846982799995
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.6746236203800002,
      "stddev": 0.1065989043205652,
      "median": 3.6890651867799997,
      "user": 1.9621003599999998,
      "system": 1.5369393599999999,
      "min": 3.52329185428,
      "max": 3.84099185328
    },
    {
      "command": "pnpr@main",
      "mean": 3.63414878578,
      "stddev": 0.1426866576813595,
      "median": 3.61006716328,
      "user": 2.07464426,
      "system": 1.6503877599999999,
      "min": 3.47401831128,
      "max": 3.94624365128
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store, the layout pnpm 12 installs into by default. Scenarios run on separate machines, so compare main and branch within each table.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 174.9 ± 11.1 155.8 198.3 1.00 ± 0.10
pacquet@main 174.7 ± 12.5 156.1 197.3 1.00
pnpr@HEAD 178.0 ± 7.3 167.5 191.0 1.02 ± 0.08
pnpr@main 181.0 ± 14.6 160.6 216.1 1.04 ± 0.11
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1748846968,
      "stddev": 0.011097868310510418,
      "median": 0.1747106284,
      "user": 0.22612778666666664,
      "system": 0.19359700000000002,
      "min": 0.15580418440000002,
      "max": 0.19829229040000002
    },
    {
      "command": "pacquet@main",
      "mean": 0.17469188000000002,
      "stddev": 0.012484835129788043,
      "median": 0.1730215344,
      "user": 0.2117714533333333,
      "system": 0.19793253333333333,
      "min": 0.15606661640000002,
      "max": 0.19730072240000002
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.1780445254,
      "stddev": 0.007336331992961029,
      "median": 0.1771300674,
      "user": 0.2138168276923077,
      "system": 0.17951387692307688,
      "min": 0.16749751840000002,
      "max": 0.19101104040000003
    },
    {
      "command": "pnpr@main",
      "mean": 0.1809873214,
      "stddev": 0.014627318424545038,
      "median": 0.1803294634,
      "user": 0.2269143057142857,
      "system": 0.1564083714285714,
      "min": 0.1606355134,
      "max": 0.2161404754
    }
  ]
}

Scenario: Store only: unlocked direct deps, cold cache + hot store

Store-only install (enableModulesDir: false, per-file store index, trusted lockfile) against a lockfile missing the direct dependencies that have peers, with the metadata cache wiped per iteration: the install resolves those from the registry, reuses their subtrees from the lockfile and checks the store, linking nothing. Direct installs only.

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.432 ± 0.093 1.306 1.616 1.02 ± 0.09
pacquet@main 1.400 ± 0.079 1.301 1.506 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.4316606181399998,
      "stddev": 0.09281736814792584,
      "median": 1.42647348844,
      "user": 0.8228454000000001,
      "system": 0.34421686000000007,
      "min": 1.30608809194,
      "max": 1.61626022794
    },
    {
      "command": "pacquet@main",
      "mean": 1.3998986450400002,
      "stddev": 0.0788216348690461,
      "median": 1.42279414444,
      "user": 0.7321762,
      "system": 0.31039906,
      "min": 1.30081773394,
      "max": 1.50606425494
    }
  ]
}

Scenario: Cargo: repeat install, hot cache + hot store

Frozen repeat install of a Cargo workspace (cargo.enabled: true) whose crates are already materialized in <storeDir>/v11/crates/ and linked into .pnpm/crates/crates-io. Direct installs only.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 48.6 ± 3.8 40.3 57.5 1.04 ± 0.13
pacquet@main 46.5 ± 4.7 36.9 56.2 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.048594024735625,
      "stddev": 0.0037876195204497864,
      "median": 0.04872966472000001,
      "user": 0.034344213124999995,
      "system": 0.027740539374999998,
      "min": 0.040343296720000005,
      "max": 0.05751742272
    },
    {
      "command": "pacquet@main",
      "mean": 0.046547458933114766,
      "stddev": 0.004694631117967591,
      "median": 0.046215392720000005,
      "user": 0.032102825573770484,
      "system": 0.027532106229508198,
      "min": 0.036882972720000004,
      "max": 0.05619618172
    }
  ]
}

@zkochan

zkochan commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Kept as a draft on purpose: this is one lane of pnpm/tasks#244, and the other lanes (SQL metadata storage among them) are landing in parallel. CI is green on 6f05414. What is left is listed under "Not done here" in the description.


Written by an agent (Claude Code, claude-opus-5-5).

@codecov-commenter

codecov-commenter commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.02458% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.74%. Comparing base (fef57ba) to head (4edb8a2).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
.../crates/pnpr/src/server/publishing/verification.rs 91.93% 10 Missing ⚠️
pnpm/crates/tarball/src/extract/publication.rs 94.03% 9 Missing ⚠️
...r/crates/pnpr/src/server/publishing/attachments.rs 91.30% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17552      +/-   ##
==========================================
+ Coverage   92.72%   92.74%   +0.02%     
==========================================
  Files        1966     1974       +8     
  Lines      255825   256902    +1077     
==========================================
+ Hits       237204   238258    +1054     
- Misses      18621    18644      +23     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zkochan
zkochan force-pushed the pnpr/publish-manifest-verification branch 2 times, most recently from 9658b01 to 0f43164 Compare November 2, 2026 11:34
@zkochan
zkochan force-pushed the pnpr/publish-manifest-verification branch from 0f43164 to dede11c Compare November 2, 2026 16:08
@zkochan
zkochan marked this pull request as ready for review November 2, 2026 16:31
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:31

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Verify hosted publish metadata against package archives

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Reject hosted publishes whose install-critical metadata disagrees with the archive or whose
 archive is unsafe.
Diagram

graph TD
  A["Publish Request"] --> B["Archive Reader"] --> C["Manifest Profile"] --> D{"Metadata agrees?"}
  D -->|yes| E["Accepted Version"] --> F["Publish Response"]
  D -->|no| G["400 Response"]
  E -->|profile and digests| H["Metadata Storage"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Combine archive inspection into one decode pass
  • ➕ Avoids decompressing each published tarball twice.
  • ➕ Could apply inspection and manifest limits in one place.
  • ➖ Requires changing the existing tar integrity and inspection pipeline.
  • ➖ Adds integration risk to a security-sensitive publish path.

Recommendation: Keep the versioned, shared manifest profile and verify before commit; they make acceptance rules reusable and stored metadata auditable. The separate bounded archive read is a reasonable initial integration, though a single-pass decode is worth considering if publish throughput or large archives make the extra pass costly.

Files changed (69) +2977 / -173

Enhancement (21) +1213 / -78
install_manifest.rsDefine the versioned install-manifest profile +148/-0

Define the versioned install-manifest profile

• Introduces archive facts, normalized install fields, comparison, and archive-derived version rewriting under npm-install-manifest/1.

pnpm/crates/package-manifest/src/install_manifest.rs

bin_field.rsNormalize executable declarations +65/-0

Normalize executable declarations

• Derives commands from string or object bin fields and expands directories.bin using archive files.

pnpm/crates/package-manifest/src/install_manifest/bin_field.rs

comparison.rsCompare install fields with a narrow gyp exception +119/-0

Compare install fields with a narrow gyp exception

• Reports differing fields or map keys and tolerates only an otherwise isolated, unbuildable submitted node-gyp script.

pnpm/crates/package-manifest/src/install_manifest/comparison.rs

fields.rsNormalize identity, dependencies, platforms, and scripts +206/-0

Normalize identity, dependencies, platforms, and scripts

• Applies npm-compatible field normalization and writes archive-derived lifecycle scripts back to version metadata.

pnpm/crates/package-manifest/src/install_manifest/fields.rs

lib.rsExpose install-manifest APIs +5/-0

Expose install-manifest APIs

• Exports the profile, archive facts, derived manifest, comparison, and relevant constants.

pnpm/crates/package-manifest/src/lib.rs

extract.rsRegister publication archive reading +5/-0

Register publication archive reading

• Adds the publication reader module and exports its types, limits, and entry point.

pnpm/crates/tarball/src/extract.rs

publication.rsSafely inspect publication archives +240/-0

Safely inspect publication archives

• Reads manifest inputs and SHA-512 digests while rejecting ambiguous documents, unsafe paths, and archives exceeding entry, path, or manifest limits.

pnpm/crates/tarball/src/extract/publication.rs

lib.rsExport publication archive inspection +4/-2

Export publication archive inspection

• Makes the publication reader, result types, and safety limits available to pnpr.

pnpm/crates/tarball/src/lib.rs

lib.rsDefine a manifest-mismatch error +20/-0

Define a manifest-mismatch error

• Adds an error naming the package, version, interpretation profile, and differing fields.

pnpr/crates/error/src/lib.rs

response.rsReturn structured publish mismatch responses +2/-0

Return structured publish mismatch responses

• Maps manifest mismatches to HTTP 400 and the manifest_mismatch error code.

pnpr/crates/error/src/response.rs

documents.rsInitialize non-npm publication notices +1/-0

Initialize non-npm publication notices

• Supplies an empty notice list when staging hosted artifacts outside npm publication.

pnpr/crates/pnpr/src/server/documents.rs

publishing.rsRegister publish verification +1/-0

Register publish verification

• Adds the publication verification module to the server.

pnpr/crates/pnpr/src/server/publishing.rs

atomic.rsCarry tolerated-difference notices to publishers +31/-3

Carry tolerated-difference notices to publishers

• Collects staging notices in the publication receipt and emits npm-notice headers on a committed response.

pnpr/crates/pnpr/src/server/publishing/atomic.rs

attachments.rsVerify archives before staging publication metadata +78/-27

Verify archives before staging publication metadata

• Requires decodable tarballs, retains archive inputs alongside tar inspection, verifies merged version metadata, and cleans temporary slots on rejection.

pnpr/crates/pnpr/src/server/publishing/attachments.rs

verification.rsEnforce archive-derived hosted version metadata +151/-0

Enforce archive-derived hosted version metadata

• Parses each archive manifest, compares it with submitted metadata and the publication slot, records profile and input digests, and creates notices for tolerated differences.

pnpr/crates/pnpr/src/server/publishing/verification.rs

metadata.rsName the archive-manifest provenance field +5/-0

Name the archive-manifest provenance field

• Defines the shared _archiveManifest field used by publication and metadata storage.

pnpr/crates/storage/src/metadata.rs

cache.rsKey cached fragments by stored profile +2/-1

Key cached fragments by stored profile

• Makes the fragment's interpretation profile an owned string rather than a fixed submitted profile.

pnpr/crates/storage/src/metadata/sqlite/cache.rs

commit.rsPreserve interpretation in immutable version checks +41/-22

Preserve interpretation in immutable version checks

• Includes profile and input digests in accepted-version reconciliation and digest calculation.

pnpr/crates/storage/src/metadata/sqlite/commit.rs

packument.rsSeparate version manifest from interpretation +61/-6

Separate version manifest from interpretation

• Extracts and validates _archiveManifest into a profile and input-digest record, retaining submitted as the fallback profile.

pnpr/crates/storage/src/metadata/sqlite/packument.rs

render.rsRender stored archive interpretation +20/-11

Render stored archive interpretation

• Reads each version's stored profile and inputs and restores _archiveManifest in served metadata.

pnpr/crates/storage/src/metadata/sqlite/render.rs

versions.rsInsert version-specific interpretation rows +8/-6

Insert version-specific interpretation rows

• Persists each version's profile, raw-input digests, and accepted-content digest.

pnpr/crates/storage/src/metadata/sqlite/versions.rs

Tests (44) +1694 / -92
bin-scoped-string.jsonCover scoped string-bin normalization +34/-0

Cover scoped string-bin normalization

• Defines the command name derived from a scoped package's string bin field.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/bin-scoped-string.json

bin-string-expanded.jsonCover npm-expanded string bins +34/-0

Cover npm-expanded string bins

• Treats a string bin and npm's equivalent command map as equal.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/bin-string-expanded.json

bundle-dependencies-true.jsonCover bundled dependency expansion +47/-0

Cover bundled dependency expansion

• Equates bundleDependencies true with the submitted list of dependency names.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/bundle-dependencies-true.json

changed-install-script.jsonReject an unrelated install script +31/-0

Reject an unrelated install script

• Specifies that a submitted install script absent from the archive is a mismatch.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/changed-install-script.json

dependency-only-in-archive.jsonReject an omitted archive dependency +39/-0

Reject an omitted archive dependency

• Requires a dependency declared only inside the archive to be reported by name.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/dependency-only-in-archive.json

directories-bin-expanded.jsonCover directories.bin expansion +44/-0

Cover directories.bin expansion

• Defines command expansion from archive files while excluding hidden entries.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/directories-bin-expanded.json

empty-map-vs-absent.jsonEquate empty fields with absent fields +31/-0

Equate empty fields with absent fields

• Covers empty dependency, bin, engines, and platform fields.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/empty-map-vs-absent.json

engines-node-star.jsonCover unrestricted Node engine normalization +29/-0

Cover unrestricted Node engine normalization

• Equates engines.node set to * with no Node engine restriction.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/engines-node-star.json

git-shorthand.jsonCover hosted Git specifier normalization +38/-0

Cover hosted Git specifier normalization

• Equates repository shorthand with its github-prefixed dependency specifier.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/git-shorthand.json

gypfile-buildable.jsonCover implicit build for binding.gyp +35/-0

Cover implicit build for binding.gyp

• Expects a root binding.gyp to supply the install script an installer runs.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/gypfile-buildable.json

gypfile-opt-out-only-submitted.jsonReject a submitted-only gyp opt-out +33/-0

Reject a submitted-only gyp opt-out

• Detects metadata that suppresses an implicit archive build through gypfile false.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/gypfile-opt-out-only-submitted.json

gypfile-opt-out.jsonCover archive gyp build opt-out +29/-0

Cover archive gyp build opt-out

• Confirms gypfile false in the archive prevents an implicit install script.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/gypfile-opt-out.json

gypfile-unbuildable.jsonTolerate an unbuildable npm-added gyp script +42/-0

Tolerate an unbuildable npm-added gyp script

• Accepts and records a submitted node-gyp rebuild when the archive cannot run it.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/gypfile-unbuildable.json

gypfile-with-other-script-difference.jsonLimit the gyp-script exception +40/-0

Limit the gyp-script exception

• Rejects other lifecycle differences alongside a submitted node-gyp script.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/gypfile-with-other-script-difference.json

mismatched-dependencies.jsonCover dependency and lifecycle mismatches +49/-0

Cover dependency and lifecycle mismatches

• Names a changed dependency range and archive-only postinstall script as mismatches.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/mismatched-dependencies.json

normalize-data-identity.jsonCover npm identity cleaning +26/-0

Cover npm identity cleaning

• Equates trimmed package names and versions with an npm-cleaned prefix.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/normalize-data-identity.json

optional-dependencies-copied.jsonCover legacy optional dependency copying +38/-0

Cover legacy optional dependency copying

• Treats an identical dependency copied from optionalDependencies as optional.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/optional-dependencies-copied.json

optional-dependency-with-other-range.jsonReject a nonidentical optional dependency copy +40/-0

Reject a nonidentical optional dependency copy

• Keeps differing dependency ranges as a real metadata mismatch.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/optional-dependency-with-other-range.json

platform-fields.jsonCover platform-set comparison +56/-0

Cover platform-set comparison

• Normalizes platform field ordering and shape while detecting a libc disagreement.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/platform-fields.json

pnpm-publish-document.jsonCover a pnpm publish document +88/-0

Cover a pnpm publish document

• Checks matching pnpm-submitted metadata and archive fields while ignoring unrelated metadata.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/pnpm-publish-document.json

shrinkwrap.jsonCover archive-derived shrinkwrap presence +27/-0

Cover archive-derived shrinkwrap presence

• Requires a root shrinkwrap to set hasShrinkwrap independently of submitted metadata.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/shrinkwrap.json

version-build-metadata.jsonCover semver build metadata removal +26/-0

Cover semver build metadata removal

• Equates an archive version with build metadata to its published version without it.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/version-build-metadata.json

version-mismatch.jsonReject a wrong archive version +28/-0

Reject a wrong archive version

• Reports a version mismatch that persists after npm-style version cleaning.

pnpm/crates/package-manifest/fixtures/npm-install-manifest-1/version-mismatch.json

tests.rsExercise shared profile fixtures and rewriting +127/-0

Exercise shared profile fixtures and rewriting

• Runs every JSON profile fixture and tests identity, comparison, and selective version-field replacement.

pnpm/crates/package-manifest/src/install_manifest/tests.rs

tests.rsTest archive selection and rejection +115/-0

Test archive selection and rejection

• Covers root inputs, ambiguous or linked manifests, unsafe paths, missing manifests, unreadable tar data, and path limits.

pnpm/crates/tarball/src/extract/publication/tests.rs

tests.rsUse a valid tarball in decode-permit testing +14/-4

Use a valid tarball in decode-permit testing

• Replaces arbitrary decoded bytes with a real package tar while preserving the integrity and semaphore assertions.

pnpr/crates/pnpr/src/server/publishing/tests.rs

auth_publish.rsWire manifest verification integration tests +4/-1

Wire manifest verification integration tests

• Registers the new test module and shares valid tarball fixture helpers.

pnpr/crates/pnpr/tests/auth_publish.rs

authentication.rsPublish a valid archive in authentication tests +3/-3

Publish a valid archive in authentication tests

• Uses a real package tarball for authenticated publish and persistence assertions.

pnpr/crates/pnpr/tests/auth_publish/authentication.rs

behavior.rsAdapt hosted behavior tests to verified tarballs +7/-4

Adapt hosted behavior tests to verified tarballs

• Uses real archives and adjusts integrity and download assertions for hosted publish behavior.

pnpr/crates/pnpr/tests/auth_publish/behavior.rs

manifest_verification.rsTest hosted publish verification end to end +301/-0

Test hosted publish verification end to end

• Covers mismatch rejection, invalid archives, normalization, archive-derived serving, provenance, gyp notices, shrinkwrap, and version cleaning.

pnpr/crates/pnpr/tests/auth_publish/manifest_verification.rs

publish_validation.rsKeep publish-validation fixtures archive-consistent +11/-6

Keep publish-validation fixtures archive-consistent

• Substitutes valid archives in persistence and republish tests, including a manifest matching the tested dependency metadata.

pnpr/crates/pnpr/tests/auth_publish/publish_validation.rs

scoped_publishing.rsAdapt scoped publish and revision tests +31/-34

Adapt scoped publish and revision tests

• Uses valid scoped archives and changes the reserved +r revision test to expect publication rejection.

pnpr/crates/pnpr/tests/auth_publish/scoped_publishing.rs

batch_publish.rsUse verifiable archives in batch tests +6/-6

Use verifiable archives in batch tests

• Builds valid npm tarballs for ordinary and scoped batch publications and updates byte assertions.

pnpr/crates/pnpr/tests/batch_publish.rs

npm.rsBuild deterministic npm publish archives +84/-10

Build deterministic npm publish archives

• Adds tarball, manifest extraction, and metadata helpers so publish fixtures submit versions consistent with their archives.

pnpr/crates/pnpr/tests/common/npm.rs

cross_ecosystem_publish.rsMake mixed-ecosystem npm fixtures verifiable +4/-3

Make mixed-ecosystem npm fixtures verifiable

• Wraps npm payloads in valid archives and adjusts the cross-ecosystem download assertion.

pnpr/crates/pnpr/tests/cross_ecosystem_publish.rs

journal_recovery.rsJournal a valid npm archive +2/-2

Journal a valid npm archive

• Replaces arbitrary tarball bytes with a manifest-bearing archive in the successful batch recovery test.

pnpr/crates/pnpr/tests/journal_recovery.rs

s3_backend.rsUse a valid archive for object-store publishing +3/-3

Use a valid archive for object-store publishing

• Updates the object-store publish and download test to use a verifiable tarball.

pnpr/crates/pnpr/tests/s3_backend.rs

server.rsAlign shared hosted publish requests with archives +3/-2

Align shared hosted publish requests with archives

• Wraps arbitrary payloads as npm archives and derives test version metadata from the contained manifest.

pnpr/crates/pnpr/tests/server.rs

hosted_discovery.rsSupply a valid hosted discovery archive +1/-1

Supply a valid hosted discovery archive

• Replaces placeholder tarball bytes in the hosted discovery publish test.

pnpr/crates/pnpr/tests/server/hosted_discovery.rs

hosted_reads.rsUse verified archives in hosted-read tests +4/-4

Use verified archives in hosted-read tests

• Replaces placeholder publish payloads with manifest-bearing archives and updates returned-byte assertions.

pnpr/crates/pnpr/tests/server/hosted_reads.rs

mutations.rsInclude manifests in tar-registry publish fixtures +5/-1

Include manifests in tar-registry publish fixtures

• Adds a matching package.json to archives used by the partial-unpublish test.

pnpr/crates/pnpr/tests/server/tar_registry/mutations.rs

sql_metadata.rsAssert SQLite serves accepted archive provenance +11/-2

Assert SQLite serves accepted archive provenance

• Checks persisted tarball bytes, profile and manifest digest, and derived install and shrinkwrap flags.

pnpr/crates/pnpr/tests/sql_metadata.rs

staged_publish.rsStage verifiable npm archives +6/-6

Stage verifiable npm archives

• Uses valid manifest-bearing tarballs for staged publish, approval, and scoped-package assertions.

pnpr/crates/pnpr/tests/staged_publish.rs

tests.rsTest immutable SQLite interpretation records +68/-0

Test immutable SQLite interpretation records

• Checks profile storage, rendering, restatement rejection, and invalid provenance records.

pnpr/crates/storage/src/metadata/sqlite/tests.rs

Documentation (3) +62 / -0
pnpr-publish-manifest-verification.mdAnnounce hosted publish verification +5/-0

Announce hosted publish verification

• Records the pnpr minor release and describes rejection, normalization, and archive-derived metadata behavior.

.changeset/pnpr-publish-manifest-verification.md

endpoints.mdDocument publish-time verification rules +53/-0

Document publish-time verification rules

• Explains archive safety limits, compared fields, normalization, tolerated gyp scripts, rejection responses, and stored provenance.

pnpr/docs/endpoints.md

storage.mdDocument accepted archive metadata in SQLite +4/-0

Document accepted archive metadata in SQLite

• Describes stored interpretation profiles and archive-input digests for published versions.

pnpr/docs/storage.md

Other (1) +8 / -3
schema.rsExtend accepted-manifest SQLite schema +8/-3

Extend accepted-manifest SQLite schema

• Bumps the schema version and stores interpretation inputs and a digest covering the accepted manifest and profile.

pnpr/crates/storage/src/metadata/sqlite/schema.rs

@qodo-code-review

qodo-code-review Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (3) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Users still receive submitted non-install fields ✗ Dismissed
Description
InstallManifest::write_to_version replaces only the profile's install-critical fields and
explicitly keeps every field outside that profile. When submitted metadata differs in a non-profile
field, pnpr preserves the submitted value while the changeset says the version's metadata is served
as the archive states it.
Code

.changeset/pnpr-publish-manifest-verification.md[5]

+A hosted pnpr registry rejects a publish whose version metadata disagrees with the `package.json` inside its archive. Its `400` response names the package, the version, and each differing field. pnpr checks the dependencies, the platform fields, `bin`, and the install scripts. pnpr also rejects a publish whose archive does not decode or holds more than one `package.json`. pnpr accepts the rewrites that npm and older clients make while publishing, such as a `bin` string expanded into an object. pnpr publishes a version without semver build metadata. pnpr serves a version's metadata as its archive states it, with `hasInstallScript` and `_hasShrinkwrap` always set.
Relevance

●●● Strong

Recent precedents accept correcting changesets that overpromise behavior beyond implementation.

PR-#17112
PR-#15673

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changeset broadly claims that a version's metadata is served as the archive states it, while
write_to_version documents and implements replacement only for install-critical profile fields and
says every field outside the profile is kept.

.changeset/pnpr-publish-manifest-verification.md[5-5]
pnpm/crates/package-manifest/src/install_manifest.rs[122-126]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The changeset claims pnpr serves a version's metadata as the archive states it, but the implementation replaces only install-critical fields and preserves metadata outside the verification profile.

## Fix Focus Areas
- .changeset/pnpr-publish-manifest-verification.md[5-5]
- pnpm/crates/package-manifest/src/install_manifest.rs[122-126]

## Recommended Fix
Rewrite the changeset sentence to state that pnpr serves the archive-derived install-critical metadata while preserving non-profile fields from the submitted version.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Unsafe archive links bypass path checks ✗ Dismissed
Description
PublicationScan::visit routes non-file entries to refuse_special_manifest before shared path
validation; that helper skips path cleaning for directories and PAX entries and treats cleaning
failures on other special entries as success, unlike regular files, which return UnsafePath. With
a valid manifest, an archive containing an escaping directory, symlink, or other special entry can
pass publication verification and be published, even though extraction later skips special entries.
Code

pnpm/crates/tarball/src/extract/publication.rs[230]

+    let Ok(path) = clean_archive_entry_path(raw) else { return Ok(()) };
Relevance

●●● Strong

Path-validation and archive safety findings receive acceptance when publication behavior differs
from extraction safeguards.

PR-#17186

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The publication reader branches on entry type before validating non-file paths, and
refuse_special_manifest returns success when cleaning a special entry's path fails; directories
and PAX entries are accepted without path cleaning. By contrast, regular-file path-cleaning failures
become UnsafePath, and the repository's path cleaner rejects paths that escape the package root,
so the non-file branch permits paths that publish-time verification is meant to refuse.

Publish-time manifest verification
pnpm/crates/tarball/src/extract/publication.rs[124-130]
pnpm/crates/tarball/src/extract/publication.rs[221-235]
pnpm/crates/tarball/src/extract/publication.rs[124-129]
pnpm/crates/tarball/src/extract/publication.rs[227-230]
pnpm/crates/tarball/src/extract/limits.rs[319-341]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Non-file tar entries bypass unsafe-path validation during publication verification: directories and PAX entries are not checked, and path-cleaning failures for other special entries are treated as success. An archive with a valid manifest and an escaping non-file entry can therefore pass verification.

## Fix Focus Areas
- pnpm/crates/tarball/src/extract/publication.rs[124-130]
- pnpm/crates/tarball/src/extract/publication.rs[221-236]
- pnpm/crates/tarball/src/extract/publication/tests.rs[80-85]

## Recommended Fix
Validate every tar entry path before branching on entry type, returning `PublicationArchiveError::UnsafePath` when the normalized path escapes the package root, including for directories, PAX entries, symlinks, devices, and other special entries. Preserve the existing root manifest and shrinkwrap collision checks, including manifest-link rejection, after path validation. Add a regression test for a traversal-based symlink or other special entry.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Altered archive names pass slot checks ✗ Dismissed
Description
insert_identity trims archive names and cleans versions before check_slot compares them with the
publication URL and version key. An archive using " pkg " or a prefixed or build-tagged version
can therefore enter a slot under a different byte sequence, so the trust decision does not preserve
the published identity.
Code

pnpm/crates/package-manifest/src/install_manifest/fields.rs[R16-19]

+        fields.insert("name".to_string(), Value::String(name.trim().to_string()));
+    }
+    if let Some(version) = manifest.get("version").and_then(Value::as_str) {
+        fields.insert("version".to_string(), Value::String(clean_version(version)));
Relevance

●● Moderate

Normalization is intentional, but raw archive identity semantics create a substantive security
concern without close rejection precedent.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added identity derivation trims names and removes version prefixes, whitespace, and build
metadata. The added slot check compares the already-derived values to the requested package and
version, so it never checks the raw archive identifiers.

pnpm/crates/package-manifest/src/install_manifest/fields.rs[12-35]
pnpr/crates/pnpr/src/server/publishing/verification.rs[102-123]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

Issue description
The archive package name and version are normalized before they are compared with the package and version being published. This permits altered attacker-controlled identity strings to be accepted under normalized slot values.

Fix Focus Areas
- pnpm/crates/package-manifest/src/install_manifest/fields.rs[14-20]
- pnpr/crates/pnpr/src/server/publishing/verification.rs[102-124]

Recommended Fix
Retain the raw archive `name` and `version` values for the publication-slot check and require exact equality with the canonical package name and requested version key before applying npm compatibility normalizations to install-manifest comparison. Keep normalized values only for the separate manifest-profile comparison and storage behavior.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

4. Publish responses exceed the notice cap ✓ Resolved
Description
add_npm_notices budgets individual notices but appends the unbudgeted summary after the loop. When
accepted notices consume 2048 bytes and versions remain, the summary pushes the response's
npm-notice values beyond NPM_NOTICE_BYTES, weakening the header-size bound for npm-compatible
publish responses.
Code

pnpr/crates/pnpr/src/server/publishing/atomic.rs[R468-476]

+    let rest = notices.len() - sent;
+    if rest > 0 {
+        let summary = format!("{rest} more versions were accepted with a notice");
+        response
+            .headers_mut()
+            .append(
+                "npm-notice",
+                header::HeaderValue::from_str(&summary)
+                    .expect("an ASCII summary is a header value"),
Relevance

●●● Strong

Finding directly matches the PR’s stated 2 KiB notice-bound intent and identifies a deterministic
summary-budget bug.

PR-#17553

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The helper stops budgeting after counting the sent notices, then unconditionally appends a summary
whose bytes are not included in budget. The related test permits up to 64 bytes beyond 2048,
confirming that the complete header-value total is not constrained to the declared cap.

Rule 2254427: Conform npm-compatible registry endpoints to the official Registry HTTP API spec
pnpr/crates/pnpr/src/server/publishing/atomic.rs[458-477]
pnpr/crates/pnpr/src/server/publishing/tests.rs[149-157]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The notice budget accounts for individual notices but not the appended remainder summary, so a response can exceed the declared 2048-byte `npm-notice` value budget.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/atomic.rs[458-477]
- pnpr/crates/pnpr/src/server/publishing/tests.rs[149-157]

## Recommended Fix
Reserve space for the remainder summary before appending notices, or truncate/omit the summary when it would exceed `NPM_NOTICE_BYTES`. Update the test to assert the complete sum of all `npm-notice` value bytes is within the intended bound.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


5. Large notice headers obscure successful publishes ✓ Resolved
Description
add_npm_notices appends every notice to the response without a count or aggregate-size limit. A
publisher can submit many versions with tolerated install-script differences, causing a publish to
commit before its response exceeds a proxy or client's header limit.
Code

pnpr/crates/pnpr/src/server/publishing/atomic.rs[R453-455]

+    for notice in notices {
+        if let Ok(value) = header::HeaderValue::from_str(notice) {
+            response.headers_mut().append("npm-notice", value);
Relevance

●●● Strong

Recent reviews accept bounded resource handling; unbounded publish notices create a concrete
response-size reliability risk.

PR-#17553

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Verification collects one notice per tarball with a tolerated difference, and the publishability
check does not cap the number of attachment versions. The response writer appends all collected
notices after the commit has returned.

pnpr/crates/pnpr/src/server/publishing/verification.rs[39-63]
pnpr/crates/pnpr/src/server/publishing/manifest.rs[81-112]
pnpr/crates/pnpr/src/server/publishing.rs[236-243]
pnpr/crates/pnpr/src/server/publishing/atomic.rs[443-457]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
A publish can generate enough tolerated-difference notices to make its post-commit response exceed header limits, leaving the publisher unable to tell that it succeeded.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/atomic.rs[450-457]
- pnpr/crates/pnpr/src/server/publishing/verification.rs[39-63]

## Recommended Fix
Enforce a small aggregate byte and count budget when emitting `npm-notice` headers. If notices exceed it, emit a bounded truncation notice rather than appending every value.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


6. Retried publishes omit build warnings 🐞 Bug ≡ Correctness
Description
replayed_outcome constructs the receipt with an empty notices list instead of reproducing the
notices returned by the original commit. When a publisher retries after losing the response to a
publish with a tolerated node-gyp rebuild difference, the successful replay omits the warning that
the install script was not served.
Code

pnpr/crates/pnpr/src/server/publishing/atomic.rs[126]

+        notices: Vec::new(),
Relevance

●●● Strong

Same-file replay and publication correctness findings were accepted in the current atomic publishing
work.

PR-#17553

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Verification generates the warning, staging carries it into the initial receipt, and the response
emits headers from that receipt. The replay path instead creates an empty notice list, so it cannot
emit the same warning.

pnpr/crates/pnpr/src/server/publishing/verification.rs[158-170]
pnpr/crates/pnpr/src/server/publishing/atomic.rs[117-128]
pnpr/crates/pnpr/src/server/publishing/atomic.rs[140-145]
pnpr/crates/pnpr/src/server/publishing/atomic.rs[430-448]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
An idempotent replay returns the original publish outcome but drops the `npm-notice` warning for a tolerated manifest difference.
## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/atomic.rs[117-128]
- pnpr/crates/pnpr/src/server/publishing/atomic.rs[140-145]
- pnpr/crates/pnpr/src/server/publishing/verification.rs[158-170]
## Recommended Fix
Persist the staged notices with the committed publication outcome and restore them into the receipt on replay. Add a test that retries an accepted publish with a tolerated `node-gyp rebuild` difference and checks that both responses carry the notice.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


View medium (5)
7. Published bin commands differ from archives 🐞 Bug ≡ Correctness
Description
normalize_entry takes the last segment of every bin command name, while pnpm’s install-time
resolver strips a slash only from scoped names and rejects other names containing a slash. When an
archive declares {"bin":{"tools/cli":"cli.js"}}, verification accepts it and rewrites the served
version to advertise cli, although resolving bins from that archive skips the declared command.
Code

pnpm/crates/package-manifest/src/install_manifest/bin_field.rs[R36-44]

+fn normalize_entry(command: &str, path: &str) -> Option<(String, Value)> {
+    let command = command
+        .rsplit(['/', '\\'])
+        .next()
+        .unwrap_or(command)
+        .trim();
+    let path = normalize_package_relative_path(path).unwrap_or_else(|| path.trim().to_string());
+    let usable = !command.is_empty() && !path.is_empty();
+    usable.then(|| (command.to_string(), Value::String(path)))
Relevance

●●● Strong

Recent bin-validation review accepted aligning derived bin metadata with install-time resolver
behavior.

PR-#17186

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new derivation removes everything before the final slash. The existing resolver retains the
slash for a non-scoped name and rejects it as unsafe; verification writes the derived bin value to
the served version.

pnpm/crates/package-manifest/src/install_manifest/bin_field.rs[29-44]
pnpm/crates/package-manifest/src/bins.rs[215-254]
pnpm/crates/package-manifest/src/bins.rs[425-450]
pnpr/crates/pnpr/src/server/publishing/verification.rs[69-82]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Manifest derivation changes ordinary slash-containing bin names into commands that pnpm would not resolve from the archive.
## Fix Focus Areas
- pnpm/crates/package-manifest/src/install_manifest/bin_field.rs[29-44]
- pnpm/crates/package-manifest/src/bins.rs[215-254]
## Recommended Fix
Use the installer’s shared command-name and safe-name rules when deriving bin entries. Add a fixture with an ordinary slash-containing command name and confirm the published representation cannot advertise a command that archive resolution skips.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


8. Release notes hide who serves metadata ✓ Resolved
Description
The changeset describes archives and versions as is rejected, is published, and metadata as `is
served` without consistently naming the hosted registry as the actor. Readers must infer which
service performs these actions and where the behavior applies.
Code

.changeset/pnpr-publish-manifest-verification.md[5]

+A hosted registry rejects a publish whose version metadata disagrees with the `package.json` inside its archive. The `400` response names the package, the version, and each differing field. The checked fields are the dependencies, the platform fields, `bin`, and the install scripts. A publish whose archive does not decode, or holds more than one `package.json`, is rejected too. Rewrites that npm and older clients make while publishing are accepted, such as a `bin` string expanded into an object. A version is published without semver build metadata. Its metadata is served as its archive states it, with `hasInstallScript` and `_hasShrinkwrap` always set.
Relevance

●●● Strong

Recent changeset reviews accepted naming actors and clarifying passive release-note wording.

PR-#17551
PR-#17514

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added changeset contains multiple passive constructions describing externally visible registry
behavior, including is rejected, is published, and is served, without an explicit actor in
each sentence.

Rule 3058332: Use plain, direct, and quantifiable language in changeset entries
.changeset/pnpr-publish-manifest-verification.md[5-5]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

Issue description
The release-note paragraph uses passive constructions for rejection, publication, and serving behavior, which obscures the actor responsible for each action.

Fix Focus Areas
- .changeset/pnpr-publish-manifest-verification.md[5-5]

Recommended Fix
Rewrite the passive sentences with explicit subjects, for example: `The hosted registry rejects an archive that does not decode`, `the registry publishes the normalized version`, and `the registry serves metadata derived from the archive`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


9. Comment repeats move-and-restore steps ✓ Resolved
Description
derive_submitted documents that it moves the version map out and back instead of describing its
input and returned install manifest contract. This comment is attached to the new helper and becomes
unnecessary if the implementation changes while the helper still derives install-critical fields.
Code

pnpr/crates/pnpr/src/server/publishing/verification.rs[R95-97]

+/// Derive the submitted version's install-critical fields. The version is
+/// moved out and back rather than cloned, since it carries its README.
+fn derive_submitted(version: &mut Map<String, Value>, facts: ArchiveFacts<'_>) -> InstallManifest {
Relevance

●● Moderate

Comment cleanup is sometimes accepted, but similar documentation-only implementation-detail edits
have also been rejected.

PR-#14665
PR-#14608

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The comment explicitly describes moving the map out and back, which is an implementation step. The
checklist requires JSDoc and documentation on functions to describe preconditions, postconditions,
edge cases, and purpose rather than restating control flow or local implementation details.

Rule 713430: JSDoc must document function contracts, not re-describe implementation
pnpr/crates/pnpr/src/server/publishing/verification.rs[95-103]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The `derive_submitted` documentation narrates the current move-and-restore implementation rather than documenting the helper's contract.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/verification.rs[95-103]

## Recommended Fix
Replace the implementation-focused comment with a contract-focused description stating that the helper derives install-critical fields from submitted version metadata while preserving all non-profile fields in the map.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


10. Every published tarball is decompressed twice 🐞 Bug ➹ Performance
Description
write_and_derive_tar calls tar_integrity_of to decode and inspect the entire .tgz, then calls
read_archive, which reopens and decodes the same upload to verify its manifest. Every hosted
tarball publication makes both passes while holding a slot in the 64-slot tar-decode semaphore,
reducing capacity for tar downloads; storage re-encoding adds a third decode when it occurs.
Code

pnpr/crates/pnpr/src/server/publishing/attachments.rs[R462-467]

+    let (integrity, inspection) = tar_integrity_of(std::io::BufReader::new(tgz))
+        .ok_or_else(|| RegistryError::InvalidAttachment {
+            filename: attachment.filename.clone(),
+            reason: "it does not decode to a tar within the decode limit".to_string(),
+        })?;
+    let archive = read_archive(tmp_path, &attachment.filename)?;
Relevance

●● Moderate

Duplicate tar decoding is a credible capacity concern, but changing this path may require broader
architectural restructuring.

PR-#17437

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
tar_integrity_of calls tar_integrity_within, which wraps the upload in MultiGzDecoder and
hashes and inspects the full decoded stream. read_archive then reopens tgz_path and uses another
MultiGzDecoder, bounded by tar_decode_limit(None), to traverse its entries. Both calls occur in
write_and_derive_tar under the permit held by write_under_permit; tar storage performs another
decode when it re-encodes the archive.

pnpr/crates/pnpr/src/server/tar_responses/decode.rs[11-62]
pnpr/crates/pnpr/src/server/publishing/verification.rs[20-32]
pnpr/crates/pnpr/src/server/publishing/attachments.rs[450-470]
pnpr/crates/pnpr/src/server/publishing/attachments.rs[429-440]
pnpr/crates/pnpr/src/server/publishing/attachments.rs[462-485]
pnpr/crates/pnpr/src/server/publishing/verification.rs[20-29]
pnpr/crates/pnpr/src/server/tar_responses/decode.rs[80-103]
pnpm/crates/tarball/src/extract/publication.rs[87-97]
PR-#17437

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Publish-time verification decodes and scans each hosted `.tgz` twice: first for integrity and inspection, then for the publication manifest, digests, and file list. Both passes hold a tar-decode permit, and storage re-encoding can add a third decode.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/attachments.rs[450-470]
- pnpr/crates/pnpr/src/server/publishing/verification.rs[20-32]
- pnpr/crates/pnpr/src/server/tar_responses/decode.rs[38-62]
- pnpm/crates/tarball/src/extract/publication.rs[77-98]

## Recommended Fix
Derive the integrity hash, `TarInspection`, and `PublicationArchive` during one bounded decode. Feed `HashingTarReader` into `read_publication_archive`, or add a `tar_integrity_within` variant that derives the inspection and archive in the same entries loop. Drain the remaining stream so the hash still covers the complete tar, preserve the decode-limit checks, return all three results together, and remove the second `File::open` and gzip decode in `read_archive`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


11. Archive tests omit Windows traversal forms ✓ Resolved
Description
The new traversal regression test covers only package/../../evil.js and never exercises a
backslash-separated escape. Windows-style archive paths can therefore regress without this test
suite detecting the changed path-validation behavior.
Code

pnpm/crates/tarball/src/extract/publication/tests.rs[R81-84]

+fn refuses_an_entry_that_escapes_the_root() {
+    let tar = tar_of(&[("package/package.json", b"{}"), ("package/../../evil.js", b"")]);
+    let error = read_publication_archive(tar.as_slice()).unwrap_err();
+    assert!(matches!(error, PublicationArchiveError::UnsafePath(_)), "{error}");
Evidence
The PR changes archive path validation and adds a traversal test, but the test fixture contains only
forward-slash traversal. The checklist requires Windows-specific coverage for path parsing changes.

pnpm/crates/tarball/src/extract/publication/tests.rs[80-85]
Skill: review-code

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

Issue description
The archive path-validation tests cover Unix separators only, despite the changed behavior involving path traversal and archive extraction semantics.

Fix Focus Areas
- pnpm/crates/tarball/src/extract/publication/tests.rs[80-85]
- pnpm/crates/tarball/src/extract/limits.rs[319-371]

Recommended Fix
Add an explicit Windows-style traversal case such as `package/..\\..\\evil.js` and assert that `read_publication_archive` returns `UnsafePath`. Keep the existing forward-slash case as well.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

12. A doc comment still says undecodable tarballs publish ✓ Resolved
Description
The doc comment on write_attachment_slot still says a .tgz that does not fully decode has no tar
and is published without one. This PR changed write_and_derive_tar to reject that case with
InvalidAttachment, so the comment is now wrong: anyone reading it will assume undecodable archives
still get accepted on the non-Tar storage path.
Code

pnpr/crates/pnpr/src/server/publishing/attachments.rs[R462-466]

+    let (integrity, inspection) = tar_integrity_of(std::io::BufReader::new(tgz))
+        .ok_or_else(|| RegistryError::InvalidAttachment {
+            filename: attachment.filename.clone(),
+            reason: "it does not decode to a tar within the decode limit".to_string(),
+        })?;
Relevance

●●● Strong

Recent pnpr precedents accept removing comments that contradict behavior or merely restate
implementation.

PR-#17437
PR-#14665

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
Lines 316-321 still describe the old behaviour, where an undecodable .tgz was published without a
tar except under TarballStorage::Tar. The new lines 462-466 now return InvalidAttachment
whenever tar_integrity_of yields None, whatever the storage mode.

pnpr/crates/pnpr/src/server/publishing/attachments.rs[316-321]
pnpr/crates/pnpr/src/server/publishing/attachments.rs[456-470]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The doc comment on `write_attachment_slot` says a `.tgz` that does not decode in full is published without a tar. This PR now rejects such a `.tgz` with a 400.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/attachments.rs[316-321]

## Recommended Fix
Rewrite the comment to say that every `.tgz` must decode in full to a tar within the decode limit and name its manifest unambiguously, and that otherwise it fails with a 400 whatever the `TarballStorage` mode.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


13. Verification copies each version's whole metadata ✓ Resolved
Description
verify_version builds the submitted manifest from Value::Object(version.clone()), which
deep-copies the whole version map, including a possibly multi-megabyte readme, on every verified
version. InstallManifest::derive only reads a few install-critical fields, so the copy is wasted
allocation on the publish path.
Code

pnpr/crates/pnpr/src/server/publishing/verification.rs[R69-71]

+    let derived = InstallManifest::derive(&manifest, facts);
+    let submitted = InstallManifest::derive(&Value::Object(version.clone()), facts);
+    let mut comparison = submitted.compare(&derived);
Relevance

●●● Strong

The team accepts concrete allocation reductions in manifest and archive processing paths.

PR-#17186

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
derive takes &Value and only calls get for profile fields such as name, version, dependencies,
bin, scripts and directories. The clone copies every field, including the README text that publish
documents carry.

pnpr/crates/pnpr/src/server/publishing/verification.rs[57-84]
pnpm/crates/package-manifest/src/install_manifest.rs[85-101]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`verify_version` deep-clones the whole version map, README included, just to wrap it in a `Value` for `InstallManifest::derive`.

## Fix Focus Areas
- pnpr/crates/pnpr/src/server/publishing/verification.rs[57-84]

## Recommended Fix
Temporarily move the map out (`std::mem::take(version)`), wrap it in `Value::Object`, derive, and then move it back. Or clone only the profile fields (`INSTALL_MANIFEST_FIELDS` plus `directories`, `gypfile`, `bundledDependencies`) into a small map before calling `derive`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


14. Publishes can pass checks yet fail every install ✓ Resolved
Description
read_publication_archive_within stops at the first end-of-archive block that
tar::Archive::entries() reports and calls scan.finish() without checking the bytes after it.
pnpm's installer extraction checks that trailer with check_trailer and rejects any nonzero or
oversized data there. An archive with garbage after the tar end marker is therefore verified and
published, but pnpm cannot install it. That goes against this reader's stated goal of refusing any
archive where the installer's view is not clear-cut.
Code

pnpm/crates/tarball/src/extract/publication.rs[R90-97]

+    let entries = archive.entries().map_err(|err| unreadable(&err))?;
+    for (index, entry) in entries.enumerate() {
+        if index as u64 >= MAX_PUBLICATION_ARCHIVE_ENTRIES {
+            return Err(PublicationArchiveError::TooManyEntries);
+        }
+        scan.visit(&mut entry.map_err(|err| unreadable(&err))?)?;
+    }
+    scan.finish()
Relevance

●●● Strong

The team recently accepted validating archive termination before trusting tar inspection results.

PR-#17169

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The publication scan iterates entries and then finishes. The streaming installer path iterates
entries the same way, then validates the remaining trailer and rejects nonzero bytes.

pnpm/crates/tarball/src/extract/publication.rs[83-98]
pnpm/crates/tarball/src/extract/streaming.rs[345-356]
pnpm/crates/tarball/src/extract/limits.rs[250-272]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`read_publication_archive` accepts nonzero data after the tar end-of-archive marker. pnpm's installer rejects such archives, so a publish can be accepted that pnpm cannot install.

## Fix Focus Areas
- pnpm/crates/tarball/src/extract/publication.rs[83-98]
- pnpm/crates/tarball/src/extract/limits.rs[250-272]

## Recommended Fix
After the entries loop, run the same trailer validation the installer uses (`check_trailer`) on the remaining reader, and map a failure to `PublicationArchiveError::Unreadable`. Add a test with trailing nonzero bytes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #17553
  🌐 PR #17551
  🌐 PR #17556
✅ Compliance rules (platform): 61 rules
✅ Cross-repo context — repo relationships
  Explored: repo: pnpm/benchmarks (sha: 42bef84d) — View relationship
Review mode: Auto: 🚀 Fast: Localized bounded-header helper with straightforward behavior and focused tests.
✅ Fix-loop round: fix loop

Grey Divider

⚠️ Warning | Comment size exceeded, non finding content trimmed Learn more

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:43

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@zkochan

zkochan commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

Replies to the Qodo findings that have no inline thread, as of 9167868:

  1. Release notes hide who serves metadata. Fixed in 9167868. Every sentence of the changeset now names pnpr as the actor.
  2. Published bin commands differ from archives. Not changing this. The profile follows npm's binRefs step (npm-normalize-package-bin), which takes the basename of every bin key, not only of a scoped one. npm publish therefore submits {"cli": …} for an archive that declares {"tools/cli": …}, and npm links cli from that archive. Comparing with pnpm's stricter install-time rule would reject what npm itself publishes. Whether pnpm's installer should link such a command is a separate pnpm question.
  3. Archive tests omit Windows traversal forms. Fixed in 622527b: refuses_an_entry_that_escapes_the_root_through_backslashes.
  4. Every published tarball is decompressed twice. Not in this PR. The two passes are the existing inspect_tar integrity scan and the new publication scan. Each needs its own tar::Archive entries loop, so one decode means merging the two scanners and restructuring the integrity pipeline. Both passes are bounded by the same decode limit and share one decode permit. The PR description lists this under "Not done here".
  5. Publishes can pass checks yet fail every install. Fixed in 622527b. The publication reader now runs the installer's check_trailer after the last entry: refuses_data_after_the_end_of_archive_marker.
  6. Verification copies each version's whole metadata. Fixed in 1b264b6. The submitted version is moved into the derivation and back, not cloned.

Written by an agent (Claude Code, claude-opus-5-5).

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 9167868

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai coderabbitai 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.

  • Fix comments: Fix CodeRabbit comments on this PR

@coderabbitai coderabbitai 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.

  • Fix comments: Fix CodeRabbit comments on this PR

Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:00

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 4edb8a2

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan

zkochan commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@zkochan
zkochan added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 2e27cd2 Nov 2, 2026
76 checks passed
@zkochan
zkochan deleted the pnpr/publish-manifest-verification branch November 2, 2026 22:10
@coderabbitai coderabbitai Bot mentioned this pull request Nov 5, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet product: pnpr reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants