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
753 changes: 457 additions & 296 deletions .github/workflows/publish.yml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pnpm-debug.log*
dist/
coverage/
.release/
/.release-reuse-verification/
/.release-consumer-verification/
*.tsbuildinfo

.env
Expand Down
26 changes: 21 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,34 @@ Work on a `claude/*` branch and open a pull request. The gate is

Publishing is trusted-publisher only; no tokens exist. A release starts from a
protected signed annotated `vX.Y.Z` tag already on `origin/main`, followed by
`gh release create vX.Y.Z --verify-tag`. The unprivileged preparation job runs
the gate and packs the exact artifacts; only the minimal publish job receives
OIDC authority. Publication is integrity-checked, retry-safe, and
`gh release create vX.Y.Z --verify-tag`. Unprivileged validation jobs run the
full gates on Node 22 and 24. Preparation depends on that validation and the
signed-release identity checks, packs only selected source packages, and retains
the independently pinned exact original registry archives for unselected
packages. Only the minimal publish job receives OIDC authority.
Publication is integrity-checked, retry-safe, and
dependency-ordered. See `docs/RELEASING.md`.

The sole registration exception is a separately reviewed, metadata-only first
`@pegma/storage-dynamodb@0.4.2` archive under `bootstrap`, which may be published
only by the maintainer with interactive 2FA. It contains no runtime, exports, scripts or
dependencies, is not an SDK/release qualification, and is never a host input.
Actual runtime publication remains trusted-publisher only.

Schema 2 packs only selected source packages. Unselected packages reuse exact,
independently pinned original registry archives with genuine signature/Sigstore
and historical source checks. Never label unversioned workspace changes as
published code or substitute them for the pinned Core `0.4.0` runtime/error classes.

## Where things stand

All four packages are in this repository. `@pegma/storage-core` and
`@pegma/storage-azure-tables` are published at `0.4.0`,
`@pegma/storage-cloudflare-d1` carries a `0.4.1` transaction-robustness
patch of its own, and `@pegma/storage-dynamodb` is the AWS adapter at
`0.4.2` (see `docs/AWS_ADAPTER.md`). The port offers keyed access,
patch of its own. DynamoDB `0.4.2` is reserved for registration-only metadata;
`@pegma/storage-dynamodb@0.4.3` is the unpublished first trusted AWS runtime
candidate (see `docs/AWS_ADAPTER.md` and `docs/RELEASING.md`). Do not claim
registration or release before its actual registry evidence. The port offers keyed access,
optimistic concurrency through `update`, version-conditional
`putIfUnchanged` and `deleteIfUnchanged`, partition reads, bounded
authoritative cross-partition scans, and `transact`.
Expand Down
28 changes: 20 additions & 8 deletions docs/AWS_ADAPTER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

## Status

Implemented in this repository. It is finished when every conformance case
passes against **Amazon DynamoDB Local**. The first advertised publication is
package version `0.4.2` (the next unused repository-wide release number after
`v0.4.1`).
The runtime adapter is implemented in this repository. It qualifies when every
conformance case passes against **Amazon DynamoDB Local** and the release gates
are satisfied. `@pegma/storage-dynamodb@0.4.3` is the unpublished first trusted
runtime candidate. Version `0.4.2` is reserved for a separately reviewed,
metadata-only registration archive: it contains no runtime, exports, scripts or
dependencies, is not an SDK, and must never be a host input. Registration and
runtime publication remain pending until their actual registry evidence exists.

Decided 2026-09-11. This is the assignment record for Storage Core's third
real adapter — read `AGENTS.md` first; its hard rules govern everything here.
Expand Down Expand Up @@ -73,10 +76,19 @@ Node 22 + 24.

## Versioning and publish

The port is unchanged, so `@pegma/storage-core` stays at `0.4.0` and this
adapter pins it exactly. The package's first advertised version is `0.4.2`
because repository-wide tags `v0.4.0` and `v0.4.1` already exist and must
never be reused.
The port is unchanged, so `@pegma/storage-core` stays at `0.4.0` and the runtime
candidate pins it exactly. `0.4.2` is registration-only metadata under `bootstrap`,
not a usable adapter release. The first trusted runtime candidate is `0.4.3`;
its publication requires the reviewed signed-source and trusted-publisher flow.
Existing repository-wide tags `v0.4.0` and `v0.4.1` must never be reused.

Unprivileged validation runs the full gates on Node 22 and 24 before preparation.
Preparation depends on that validation and signed-release identity checks; it
packs only selected source packages and retains the independently pinned exact
original registry archives for unselected packages. Only the minimal publish job
receives OIDC authority. See [RELEASING.md](RELEASING.md) for the separate
registration exception and runtime release procedure; this document records no
completed registration or runtime publication.

## What it unblocks

Expand Down
Loading
Loading