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
10 changes: 6 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ 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. DynamoDB `0.4.2` is published registration-only metadata.
The `v0.4.3` attempt failed before preparation, with no runtime archive or
publication. Its signed tag remains immutable; retain its release as a failure.
`@pegma/storage-dynamodb@0.4.4` is the unpublished first trusted
The `v0.4.3` attempt failed its npm-version check before preparation.
The `v0.4.4` attempt completed preparation and smoke checks, then failed the
preflight CLI entry with a module cycle (exit 13), before publication.
Keep both signed tags immutable and retain their releases as failed attempts.
`@pegma/storage-dynamodb@0.4.5` is the unpublished first trusted
AWS runtime candidate (see `docs/AWS_ADAPTER.md` and `docs/RELEASING.md`).
The later D1 feature is planned as `0.4.5`. Do not claim runtime release before
The later D1 feature is planned as `0.4.6`. Do not claim runtime release before
its actual registry qualification. The port offers keyed access,
optimistic concurrency through `update`, version-conditional
`putIfUnchanged` and `deleteIfUnchanged`, partition reads, bounded
Expand Down
15 changes: 9 additions & 6 deletions docs/AWS_ADAPTER.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

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.4` is the unpublished first trusted
are satisfied. `@pegma/storage-dynamodb@0.4.5` is the unpublished first trusted
runtime candidate. Version `0.4.2` was published as 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. The `v0.4.3` release
attempt failed before preparation, producing no runtime archive or publication.
Its signed tag remains immutable; retain the release as a failed attempt.
attempt failed its npm-version check before preparation, producing no runtime
archive. The `v0.4.4` attempt completed preparation and smoke checks, then failed
the preflight CLI entry with a module cycle (exit 13). Neither published a
runtime. Keep both signed tags immutable and retain the failed releases.
Runtime qualification remains pending.

Decided 2026-09-11. This is the assignment record for Storage Core's third
Expand Down Expand Up @@ -80,10 +82,11 @@ Node 22 + 24.

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.4`;
not a usable adapter release. The first trusted runtime candidate is `0.4.5`;
its publication requires the reviewed signed-source and trusted-publisher flow.
Existing repository-wide tags `v0.4.0`, `v0.4.1` and failed `v0.4.3` must never
be reused. The later D1 feature is planned as `0.4.5`, after its own review.
Existing repository-wide tags `v0.4.0`, `v0.4.1`, failed `v0.4.3` and failed
`v0.4.4` must never be reused. The later D1 feature is planned as `0.4.6`, after
its own review.

Unprivileged validation runs the full gates on Node 22 and 24 before preparation.
Preparation depends on that validation and signed-release identity checks; it
Expand Down
25 changes: 17 additions & 8 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ below is an explicit first-package exception, not a runtime release path.
## Current versions and source ownership

Core and Azure are published at `0.4.0`; D1 at `0.4.1`. DynamoDB `0.4.2` is
published registration-only metadata, and `0.4.4` is the unpublished first trusted
published registration-only metadata, and `0.4.5` is the unpublished first trusted
runtime candidate. The `v0.4.3` release attempt failed its npm-version check
before preparation: no runtime archive was produced or published. Its signed
tag remains immutable; preserve the release as a failed attempt. Registration is
not adapter code, conformance
tag remains immutable; preserve the release as a failed attempt. The `v0.4.4`
attempt completed preparation and smoke checks, then its direct preflight CLI
failed with a top-level-await module-entry cycle (exit 13), before publication.
Retain that signed tag, prepared artifacts and failed release as well.
Registration is not adapter code, conformance
evidence or a production dependency; runtime qualification remains pending.

Unversioned Core/Azure/D1 changes in current source are **not** the code published
Expand All @@ -24,8 +27,14 @@ no Core or host upgrade is implied.

Versions are independently assigned but release tags share a repository-wide
namespace. Never reuse or move a tag/version, including failed publication or
registration versions. First trusted DynamoDB is now planned as `v0.4.4`; the
separate later D1 feature is planned as `0.4.5`, after rebase and its own review.
registration versions. First trusted DynamoDB is now planned as `v0.4.5`; the
separate later D1 feature is planned as `0.4.6`, after rebase and its own review.

A release run uses the workflow at its tagged commit, as documented in
[workflow triggers](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflows#workflow-triggers)
and the [`release` event reference](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#release).
Changing `main` cannot repair that older tagged workflow; workflow code fixes
require a fresh version and signed tag.

## Required configuration

Expand Down Expand Up @@ -58,10 +67,10 @@ v0.4.2 release is needed.

Verify trusted publishing and package/account restrictions again for the fresh
runtime candidate. After the corrected source passes full gates and merges,
create and verify its signed annotated `v0.4.4` tag on `origin/main`; create its
create and verify its signed annotated `v0.4.5` tag on `origin/main`; create its
GitHub release only when this configuration is complete. Do not move or reuse
the signed `v0.4.3` tag; retain its release as a failed attempt.
Never manually publish the real `0.4.4` artifact
the signed `v0.4.3` or `v0.4.4` tags; retain their releases as failed attempts.
Never manually publish the real `0.4.5` artifact
first: immutable bytes with missing trusted
provenance cannot later be repaired by a skip. Registration `0.4.2` remains immutable
and explicitly outside runtime qualification.
Expand Down
10 changes: 6 additions & 4 deletions packages/storage-dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
Amazon DynamoDB adapter for
[`@pegma/storage-core`](https://www.npmjs.com/package/@pegma/storage-core).

Source `0.4.4` is the unpublished first trusted runtime candidate and pins
Source `0.4.5` is the unpublished first trusted runtime candidate and pins
released Core `0.4.0`. Version `0.4.2` was published as registration-only metadata,
with no runtime exports/scripts/dependencies; it is not this adapter or a host
dependency. The `v0.4.3` release attempt failed before preparation, producing no
runtime archive or publication. Its signed tag remains immutable, and the
release is retained as a failed attempt.
dependency. The `v0.4.3` release attempt failed its npm-version check before
preparation, producing no runtime archive. The `v0.4.4` attempt completed
preparation and smoke checks, then failed the preflight CLI entry with a module
cycle (exit 13). Neither published a runtime. Both signed tags remain immutable;
retain their releases as failed attempts.
Source merge and metadata registration do not establish runtime publication,
registry provenance or host acceptance. See the
[release policy](https://github.com/pegma-dev/storage-core/blob/main/docs/RELEASING.md).
Expand Down
2 changes: 1 addition & 1 deletion packages/storage-dynamodb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pegma/storage-dynamodb",
"version": "0.4.4",
"version": "0.4.5",
"description": "Amazon DynamoDB adapter for @pegma/storage-core.",
"license": "MIT",
"type": "module",
Expand Down
28 changes: 25 additions & 3 deletions scripts/release-registry-verify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1445,16 +1445,27 @@ function cliOptions(args) {
}
async function main() {
const [command, ...args] = process.argv.slice(2),
options = cliOptions(args);
options = cliOptions(args),
runId = Number(options.runId ?? process.env.GITHUB_RUN_ID),
runAttempt = Number(options.runAttempt ?? process.env.GITHUB_RUN_ATTEMPT);
if (
!["preflight", "verify"].includes(command) ||
!options.manifest ||
typeof options.output !== "string" ||
options.output.length === 0 ||
!Number.isSafeInteger(runId) ||
runId < 1 ||
!Number.isSafeInteger(runAttempt) ||
runAttempt < 1 ||
!/^[0-9a-f]{40}$/u.test(options.expectedReleaseCommit ?? "") ||
!/^[0-9a-f]{64}$/u.test(options.expectedManifestSha256 ?? "")
)
fail(
"usage: release-registry-verify.mjs preflight|verify --manifest --expected-release-commit --expected-manifest-sha256 --output --run-id --run-attempt",
);
// Keep the resolved invocation identity stable across asynchronous work.
options.runId = runId;
options.runAttempt = runAttempt;
const { verifyPreparedManifest } = await import("./release-packages.mjs");
const manifest = await verifyPreparedManifest(options.manifest, options);
if (command === "preflight") await preflightRegistry(manifest, options);
Expand All @@ -1463,5 +1474,16 @@ async function main() {
if (
process.argv[1] &&
resolve(process.argv[1]) === fileURLToPath(import.meta.url)
)
await main();
) {
// Finish module evaluation before main imports the producer/registry cycle.
// An unsettled CLI stays failed; only completed verification may succeed.
process.exitCode = 13;
main()
.then(() => {
process.exitCode = 0;
})
.catch((error) => {
process.exitCode = 1;
console.error(error);
});
}
4 changes: 2 additions & 2 deletions tests/release-packages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ describe("release package metadata", () => {
scripts?: { prepack?: string };
}>;

// Core/Azure040 and D1041 retain their original registry bytes. Dynamo044
// Core/Azure040 and D1041 retain their original registry bytes. Dynamo045
// is the reviewed runtime candidate; registration-only042 is no SDK.
// Every adapter pins the port exactly where it was published.
expect(manifests.map(({ name, version }) => ({ name, version }))).toEqual([
{ name: "@pegma/storage-core", version: "0.4.0" },
{ name: "@pegma/storage-azure-tables", version: "0.4.0" },
{ name: "@pegma/storage-cloudflare-d1", version: "0.4.1" },
{ name: "@pegma/storage-dynamodb", version: "0.4.4" },
{ name: "@pegma/storage-dynamodb", version: "0.4.5" },
]);
for (const adapter of manifests.slice(1)) {
expect(adapter.dependencies?.["@pegma/storage-core"]).toBe("0.4.0");
Expand Down
Loading
Loading