Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions pnpr/text/0000-atomic-workspace-publication.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Snapshot-aware readers pin that generation for their operation, so concurrent
publication cannot give them a mixture of the old and new release.

This strengthens pnpr's existing journaled batch publication. It builds on
the [SQL metadata contract](./0000-sql-metadata-storage.md) and composes with
resolution snapshots. An initial implementation can restrict batches to one
organization and one configured hosted catalog; it does not promise transactions
the [SQL metadata contract](./0000-sql-metadata-storage.md). An initial
implementation can restrict batches to one organization and one configured
hosted catalog; it does not promise transactions
across independent servers.

## Motivation
Expand Down Expand Up @@ -285,9 +285,8 @@ Uncommitted candidates are protected while a transaction can still commit.
Garbage collection must coordinate with active transactions and retained
generations. pnpr keeps the current generation and every generation that a
snapshot read has pinned, until the pin expires; a generation with neither
reference may be collected. Old generations remain reachable while a
snapshot or retention reference needs them. Deleting a tag never makes a
retained artifact eligible for accidental collection.
reference may be collected. Deleting a tag never makes a retained artifact
eligible for accidental collection.

Recovery and idempotency information required to decide a committed outcome
must commit in the same SQL transaction as the release bindings and selections.
Expand Down Expand Up @@ -361,7 +360,7 @@ Target pnpr, with new publishing and snapshot-read support in pnpm v12 only.
4. Add idempotent transaction status and capability-negotiated batch semantics.
5. Record publications with their members and serve them from the
publication routes, filtered by the caller's read access.
6. Connect server-side resolution and retained snapshots to pinned generations.
6. Connect server-side resolution to pinned generations.

Required validation includes concurrent publications of overlapping versions,
non-overlapping writers, conflicting tag updates, and policy revocation racing
Expand Down
4 changes: 2 additions & 2 deletions pnpr/text/0000-release-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ for hosted packages. Clients still have to trust that the registry did so, and
proxied upstream packages are not verified at all.

A release record is a long-lived unit that can be signed, logged, cached,
audited, and pinned by later features (resolution snapshots,
[atomic workspace publication](./0000-atomic-workspace-publication.md))
audited, and pinned by other features, such as the catalog generations of
[atomic workspace publication](./0000-atomic-workspace-publication.md),
independently of mutable package state such as tags and deprecations.

npm's registry signatures sign only `${name}@${version}:${integrity}` with a key
Expand Down
9 changes: 5 additions & 4 deletions pnpr/text/0000-sql-metadata-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ of the whole package.

pnpr also needs relationships that object storage does not coordinate well:
uniqueness of published versions, concurrent tag and policy changes, durable
publication outcomes after a lost response, and the snapshot and publication
features drafted in [pnpm/rfcs#45](https://github.com/pnpm/rfcs/pull/45) and
publication outcomes after a lost response, and the generations and
publications of
[atomic workspace publication](./0000-atomic-workspace-publication.md).

The npm registry shows what the single-document model costs at scale:
Expand Down Expand Up @@ -109,8 +109,9 @@ revision, including `r0`; it is an internal key, not new version syntax.
All key columns are non-null, so a nullable revision column cannot weaken
duplicate-publication protection. A new interpretation profile adds
`accepted_manifests` rows next to the existing ones and never overwrites
accepted metadata. Which profile a view uses is an explicit selection. Tables for snapshots, retention, and
workspace publication belong to their own RFCs and build on these operations.
accepted metadata. Which profile a view uses is an explicit selection. Tables
for workspace publication belong to their own RFC and build on these
operations.

### Generated views and caching

Expand Down