diff --git a/README.md b/README.md index c5ecb56..708dda9 100644 --- a/README.md +++ b/README.md @@ -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, +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: @@ -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 diff --git a/docs/CONSUMER_REQUIREMENTS.md b/docs/CONSUMER_REQUIREMENTS.md index fcb3393..a7ab899 100644 --- a/docs/CONSUMER_REQUIREMENTS.md +++ b/docs/CONSUMER_REQUIREMENTS.md @@ -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. diff --git a/docs/PROJECT_PLAN.md b/docs/PROJECT_PLAN.md index 665ec07..8475e98 100644 --- a/docs/PROJECT_PLAN.md +++ b/docs/PROJECT_PLAN.md @@ -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 +`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 @@ -105,14 +104,11 @@ 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. @@ -120,12 +116,10 @@ Support Desk domain packages stay outside this repository; the fixture mirrors - Publish `0.1.0` only from a protected signed annotated tag. - Add the component and a green synthetic recipe to `pegma.dev`. -**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 diff --git a/docs/RELEASING.md b/docs/RELEASING.md index c9629f0..61ec8d0 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -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). @@ -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: @@ -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. diff --git a/fixtures/README.md b/fixtures/README.md index 2dd41e5..9179c3a 100644 --- a/fixtures/README.md +++ b/fixtures/README.md @@ -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.