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
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ writes.

## Status

Phase 4 is implemented in source. The repository contains
`@pegma/scheduler` (contracts, durable runner), `@pegma/scheduler-cloudflare`
(explicit Cron Trigger dispatch), independent consumer fixtures under
`fixtures/`, Memory Store / Azurite / local D1 tests, and design documentation.
`0.0.0` was a package-name bootstrap only. The first advertised release is
`0.1.0` via the OIDC publish workflow once `v0.1.0` is tagged.
**Published:** `@pegma/scheduler@0.1.0` and `@pegma/scheduler-cloudflare@0.1.0`
(`latest` on npm). The repository contains contracts, the durable runner,
Comment on lines +13 to +14

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the READMEs shipped with the published packages

When these 0.1.0 versions are advertised as published, both package READMEs still say that the packages are “not published or usable in production” and that 0.0.0 is the current placeholder (packages/scheduler/README.md:5-8 and packages/scheduler-cloudflare/README.md:6-9). The release packer explicitly includes these READMEs, so npm users will encounter release guidance that directly contradicts this status; update both package-specific READMEs as part of the publication-status change.

AGENTS.md reference: AGENTS.md:L52-L55

Useful? React with 👍 / 👎.

Cloudflare Cron Trigger dispatch, independent consumer fixtures under
`fixtures/`, Memory Store / Azurite / local D1 tests, and OIDC release
automation. Bootstrap `0.0.0` remains under the `bootstrap` dist-tag only.

The first consumers are:

Expand All @@ -25,10 +24,10 @@ The first consumers are:

## Packages

| Package | Status | Responsibility |
| ----------------------------- | -------------- | ------------------------------------------- |
| `@pegma/scheduler` | Phase 4 source | Contracts, durable task state, and runner |
| `@pegma/scheduler-cloudflare` | Phase 4 source | Thin explicit Cron Trigger dispatch adapter |
| Package | Status | Responsibility |
| ----------------------------- | ---------------- | ------------------------------------------- |
| `@pegma/scheduler` | **0.1.0** on npm | Contracts, durable task state, and runner |
| `@pegma/scheduler-cloudflare` | **0.1.0** on npm | Thin explicit Cron Trigger dispatch adapter |

## Development

Expand Down
5 changes: 3 additions & 2 deletions docs/CONSUMER_REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ Both consumers need:

This closes requirements Phase 0. Phase 4 consumer fixtures under `fixtures/`
compile against exact workspace package pins and prove real scheduled work for
the Ops Hub and Support Desk task shapes. Full host applications still pin the
first advertised release after Phase 5 publishes.
the Ops Hub and Support Desk task shapes. Hosts should pin
`@pegma/scheduler@0.1.0` (and `@pegma/scheduler-cloudflare@0.1.0` where
applicable) from npm.
36 changes: 15 additions & 21 deletions docs/PROJECT_PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@

## Status

**Stage:** Phases 0–4 are complete in source. Phase 5 release automation and
the first advertised `0.1.0` package versions are prepared for OIDC publish.
The package-name bootstrap (`0.0.0` under tag `bootstrap`) is complete; trusted
publishers are configured. Advertised `0.1.0` is published only from a signed
`v0.1.0` tag through `.github/workflows/publish.yml`.
**Stage:** Phases 0–5 complete. `@pegma/scheduler@0.1.0` and
`@pegma/scheduler-cloudflare@0.1.0` are published on npm (`latest=0.1.0`) from
the signed `v0.1.0` tag via OIDC. Bootstrap `0.0.0` remains under the
Comment on lines +5 to +7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Update the security policy for the published release

Once 0.1.0 is declared published, SECURITY.md:5-6 remains false: it says Scheduler is not published and that fixes apply only to the latest reviewed source until the first advertised release. This leaves users and vulnerability reporters without accurate supported-version guidance, so the security policy should identify the published 0.1.x line in the same status update.

Useful? React with 👍 / 👎.

`bootstrap` dist-tag only. Host wiring (Ops Hub, Support Desk, pegma.dev
recipe) continues outside this repository.

**Trigger:** Ops Hub and Support Desk independently need the same explicit,
durable coordination boundary for recurring work.

**Initial package:** `@pegma/scheduler` and `@pegma/scheduler-cloudflare`,
first advertised release `0.1.0`.
**Published packages:** `@pegma/scheduler@0.1.0` and
`@pegma/scheduler-cloudflare@0.1.0`.

**Current exact dependencies:** `@pegma/spine@0.1.2` and
`@pegma/storage-core@0.4.0`, refreshed from the Pegma catalog on 2026-07-31.
Refresh the catalog again before any consumer integration or release.

## Vision

Expand Down Expand Up @@ -105,27 +104,22 @@ events, overlap, and a complete checkpoint cycle against persistent local D1.
pins and their integration tests prove real scheduled work.

**Phase 4 evidence:** workspace packages under `fixtures/*` each declare exact
dependency pins in their own `package.json` (`@pegma/scheduler@0.0.0`; Ops Hub
also pins `@pegma/scheduler-cloudflare@0.0.0`) and prove scheduled work with
independent task state. Ops Hub remains bootstrap-only as a host application;
the fixture is the integration bar until that host lands Worker phases.
Support Desk domain packages stay outside this repository; the fixture mirrors
`HOST_COMPOSITION.md` loop names without inventing per-bucket tasks.
dependency pins in their own `package.json` (`@pegma/scheduler@0.1.0`; Ops Hub
also pins `@pegma/scheduler-cloudflare@0.1.0`) and prove scheduled work with
independent task state.

### Phase 5 — first advertised release (automation complete; tag/publish handoff)
### Phase 5 — first advertised release (complete)

- Complete focused security review and package inventory verification.
- Add signed-tag/OIDC release automation following current Pegma practice.
- Perform the one-time package-name bootstrap if npm requires it.
- Publish `0.1.0` only from a protected signed annotated tag.
- Add the component and a green synthetic recipe to `pegma.dev`.
Comment on lines +111 to 117

**Automation evidence:** `.github/workflows/publish.yml`,
`scripts/release-packages.mjs`, `npm run release:check|pack|publish`, package
versions `0.1.0`, and `docs/RELEASE_NOTES.md`. Activation remains: signed
`v0.1.0` tag + `gh release create` on `main`, then confirm `latest=0.1.0`.
The `pegma.dev` recipe is a separate host-repo follow-up after registry
visibility.
**Evidence:** bootstrap `0.0.0` under dist-tag `bootstrap`; trusted publishers
configured; signed `v0.1.0` → GitHub release → OIDC publish; registry
`latest=0.1.0` for both packages. The `pegma.dev` catalog/recipe entry remains
a separate host-repo follow-up.

## Non-goals

Expand Down
11 changes: 5 additions & 6 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
There are exactly two publication paths:

1. a one-time manual bootstrap of `@pegma/scheduler@0.0.0` and
`@pegma/scheduler-cloudflare@0.0.0` (already completed), needed before npm had
package names on which trusted publishing could be configured; and
2. every advertised release, beginning with `0.1.0`, through the
`@pegma/scheduler-cloudflare@0.0.0` (**done**; dist-tag `bootstrap` only); and
2. every advertised release, beginning with `0.1.0` (**published**), through the
environment-protected GitHub OIDC workflow in
[`.github/workflows/publish.yml`](../.github/workflows/publish.yml).

Expand Down Expand Up @@ -66,7 +65,7 @@ npm run release:pack -- -- --output .release
# release:publish is restricted to the GitHub release workflow
```

## After `0.1.0` lands
## After a release lands

Confirm:

Expand All @@ -76,5 +75,5 @@ npm dist-tag ls @pegma/scheduler-cloudflare
npm view @pegma/scheduler version
```

`latest` should be `0.1.0` for both packages. Unqualified install is then safe
to advertise.
For `0.1.0`, `latest` is `0.1.0` and `bootstrap` remains `0.0.0`. Unqualified
install resolves to the advertised version.
5 changes: 2 additions & 3 deletions fixtures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ names and bounded-page shapes documented in those consumers.
| `support-desk` | Mail send/reconcile/sweep + queue repair/inactive-sweep loops |
| `azure-functions` | Timer-trigger composition for a RetireGolden-style Azure host |

Run with the repository gate (`npm test`). External consumers should pin the
first advertised release (`0.1.0`) from npm after the signed `v0.1.0` OIDC
publish completes.
Run with the repository gate (`npm test`). External consumers should pin
`@pegma/scheduler@0.1.0` (and the Cloudflare adapter when needed) from npm.
Comment on lines +20 to +21