diff --git a/README.md b/README.md index 2582b14..42bc4d9 100644 --- a/README.md +++ b/README.md @@ -2,29 +2,34 @@ Shared contracts and runtime libraries for CommerceKit GitHub Actions. This public repository is a pnpm monorepo, not a GitHub Marketplace Action. There is no root `action.yml`. -The source manifests prepare `notification-contract@0.0.6` (unpublished candidate) and `ccv2-client@0.0.3` under the `preview` dist-tag. Source versions are not registry publication evidence. APIs remain pre-1.0; verify registry publication before installation. Placeholder reserved versions, if published later, are not supported dependencies. +`notification-contract@0.0.6` and `ccv2-client@0.0.3` are published preview packages. APIs remain pre-1.0; pin supported exact versions. See the [publication evidence and consumer compatibility record](docs/release-status.md) for the current pins and the distinction between source integrations and released Actions. Reservation versions are unsupported placeholders. -| Package | Responsibility | Consumers | -| ------------------------------------------ | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | -| `@commercekit-tools/notification-contract` | NotificationEvent v1 schema, semantic validation, safe context, factories and text primitives | Notify, Build, Deploy, future Check, reusable workflows and external producers | -| `@commercekit-tools/ccv2-client` | Technical-user OAuth and policy-driven Cloud Portal HTTP transport | Build, Deploy and future CCv2 Actions | +| Package | Responsibility | Consumers | +| ------------------------------------------ | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `@commercekit-tools/notification-contract` | NotificationEvent v1 schema, semantic validation, safe context, factories and text primitives | Notify, Setup, Build, Deploy, Cleanup and integration tests; future Check/reusable workflows | +| `@commercekit-tools/ccv2-client` | Technical-user OAuth and policy-driven Cloud Portal HTTP transport | Build, Deploy, Cleanup and integration tests; future CCv2 Actions | The packages release independently and do not depend on each other. Notification producers need no CCv2 knowledge. Neither package depends on GitHub Actions SDKs. ```mermaid flowchart LR Notify --> Contract[notification-contract] + Setup --> Contract + Cleanup --> Contract + Harness[Integration tests] --> Contract Build --> Contract Deploy --> Contract Check[Future Check] --> Contract - Workflows[Reusable workflows] --> Contract + Workflows[Future reusable workflows] --> Contract Build --> Client[ccv2-client] Deploy --> Client + Cleanup --> Client + Harness --> Client ``` -Provider rendering and delivery, Action inputs/outputs, summaries, lifecycle state machines and endpoint-specific validation remain in consumers. See [architecture](docs/architecture.md), the original [extraction audit](docs/extraction-audit.md), and the current [remaining extraction audit](docs/remaining-extraction-audit.md). +Provider rendering and delivery, Action inputs/outputs and summary writes, lifecycle state machines and endpoint-specific validation remain in consumers. See [architecture](docs/architecture.md), the original [extraction audit](docs/extraction-audit.md), and the historical [remaining extraction audit](docs/remaining-extraction-audit.md). -Installation requires GitHub Packages access, including for public packages. Configure the scope registry and credentials using [the release configuration and authentication guide](docs/github-packages.md). Consumers must pin exact supported versions. The source manifests contain prepared preview versions; this is not evidence of publication. +Installation requires GitHub Packages access, including for public packages. Configure the scope registry and credentials using [the release configuration and authentication guide](docs/github-packages.md). Verify any future version's publication before adopting it; a source manifest alone is not evidence. Develop with Node **24.21.0** and pnpm **12.6.0**: @@ -38,11 +43,11 @@ The quality suite checks formatting, lint, TypeScript, coverage, builds, install See [CONTRIBUTING](CONTRIBUTING.md) for individual commands, [compatibility policy](docs/compatibility-policy.md), [migration plan](docs/migration-plan.md) and [SECURITY](SECURITY.md). -Package reservation, preview/stable publication and GitHub Releases are separate manually confirmed owner workflows. Publication never runs on push or PR. [RELEASING](RELEASING.md) describes two-phase recovery and coordinated stable gates. No package or Action is published by this implementation PR. +Package reservation, preview/stable publication and GitHub Releases are separate manually confirmed owner workflows. Publication never runs on push or PR. [RELEASING](RELEASING.md) describes two-phase recovery and coordinated stable gates. Documentation and normal CI do not publish packages or Actions. The manual publish workflow verifies the exact commit's CI/CodeQL results and publishes the tested tarball after an integrity check. A separate manual workflow verifies registry publication before creating a package-specific Git tag and GitHub Release. See [dispatch examples](RELEASING.md#dispatch-examples-after-merge-and-owner-approval). Tags do not trigger publication. -The [consistent Action reporting candidate](docs/action-reporting.md) adds shared +The [published consistent Action reporting contract](docs/action-reporting.md) adds shared input snapshots, status styling, GitHub summary formatting and setup events. -Published 0.0.5 remains the registry baseline; candidate consumer readiness is -blocked until separately authorized 0.0.6 publication and normal repinning. +The [compatibility record](docs/release-status.md) identifies the registry-backed +consumers and reporting enhancements that remain unreleased as Actions. diff --git a/RELEASING.md b/RELEASING.md index 92f1705..1ca301c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -6,7 +6,7 @@ Nothing is published by a feature PR or ordinary CI. Package versions are immuta 2. Verify main CI and CodeQL. 3. Optionally dispatch `reserve-package-names` with confirmation `RESERVE-COMMERCEKIT-PACKAGES`. It publishes only temporary unsupported `0.0.0-reserved.1` packages under `reserved`, never source implementations or `preview`/`latest`. Both versions are checked absent before publishing. If one succeeds and the second fails, stop for owner review rather than bypassing immutability checks. 4. Configure public visibility, repository association and Actions read access using the [package access checklist](docs/github-packages.md#package-access). -5. Prepare a selected-package version/changelog PR. Source manifests currently prepare `notification-contract@0.0.4` and `ccv2-client@0.0.3`. Source versions are not registry publication evidence. Source versions are not publication evidence. +5. Prepare a selected-package version/changelog PR for a new unpublished version. Check the [current publication record](docs/release-status.md) first; never attempt to republish an existing version. Source manifests alone are not registry publication evidence. 6. Merge the reviewed version PR. 7. Dispatch `publish-package`: package `notification-contract` or `ccv2-client`, channel `preview` or `stable`, exact confirmation `PUBLISH-COMMERCEKIT-PREVIEW` or `PUBLISH-COMMERCEKIT-STABLE`. Preview accepts nonzero `0.x.y` initial releases (including `0.0.1`) or `0.x.y-preview.n`; stable requires 1.0.0 or later without prerelease. The workflow checks version absence and successful CI/CodeQL for the exact main commit, runs full quality and the selected pack/install checks, and verifies clean generated files. It retains the tested tarball in runner temporary storage, verifies its SHA-256 immediately before publication, and publishes those exact bytes with `preview` or `latest` and lifecycle scripts disabled. No source-directory repack or artifact upload is involved. 8. Verify the exact package version in GitHub Packages and its visibility/access. @@ -23,7 +23,7 @@ The release workflow fails closed if required CI check evidence is unavailable. ## Dispatch examples after merge and owner approval -Use GitHub's Actions tab or the following commands after the version/changelog PR is merged and main checks pass. These examples publish only the selected package; repeat deliberately for the other package. They are instructions, not commands executed by this implementation. +Use GitHub's Actions tab or the following commands only for a future approved version after its version/changelog PR is merged and main checks pass. These examples publish only the selected package; repeat deliberately for the other package. The [currently published versions](docs/release-status.md) must not be republished. No dispatch is performed by a documentation update. ```sh gh workflow run publish-package.yml --ref main \ @@ -31,14 +31,14 @@ gh workflow run publish-package.yml --ref main \ -f confirmation=PUBLISH-COMMERCEKIT-PREVIEW ``` -Wait for publication success and verify the exact registry version before the separate tag/Release phase: +Wait for publication success and verify the exact registry version before the separate tag/Release phase. Set `PUBLISHED_VERSION` to that newly published, owner-approved version: ```sh gh workflow run create-package-release.yml --ref main \ - -f package=notification-contract -f version=0.0.3 \ + -f package=notification-contract -f version="$PUBLISHED_VERSION" \ -f confirmation=CREATE-COMMERCEKIT-PACKAGE-RELEASE ``` -This creates `notification-contract-v0.0.3`; selecting ccv2-client creates its independent `ccv2-client-v` tag. Stable publication uses channel `stable`, a reviewed stable manifest version and confirmation `PUBLISH-COMMERCEKIT-STABLE`. +This creates `notification-contract-v`; selecting ccv2-client creates its independent `ccv2-client-v` tag. Stable publication uses channel `stable`, a reviewed stable manifest version and confirmation `PUBLISH-COMMERCEKIT-STABLE`. Tags are an output of the verified release phase, not a publication trigger. This keeps failed publication from creating a misleading release tag and avoids relying on a token-created tag to trigger another workflow. Both release phases require explicit dispatch. The publish and Release jobs have `checks: read` to verify commit check results and `security-events: read` to verify exact-commit main CodeQL analyses and the absence of open alerts; CI remains read-only and publication has no contents-write permission. diff --git a/docs/action-reporting.md b/docs/action-reporting.md index 457e54c..4a20e33 100644 --- a/docs/action-reporting.md +++ b/docs/action-reporting.md @@ -1,7 +1,7 @@ -# Consistent Action reporting candidate +# Consistent Action reporting -The five release-candidate Actions are setup-commercekit, ccv2-build, -ccv2-deploy, ccv2-build-cleanup and notify. They share this reporting contract +The reporting implementations in setup-commercekit, ccv2-build, +ccv2-deploy, ccv2-build-cleanup and notify share this contract through the existing notification-contract package. No new package, authentication implementation, provider delivery, schedule or SAP operation is introduced. @@ -73,45 +73,20 @@ The package contains no CLI execution, Action I/O or provider renderer. Factorie project known event fields and validate; callers retain endpoint-specific result projection and register tokens with their existing masker. -## Provenance and rollout gate - -Source prepares **0.0.6**, an unpublished candidate. Registry-backed baseline -0.0.5 is published; it lacks these shared helpers and the setup event. Existing -source baselines inspected for this change: - -| Repository | Main inspected | -| ------------------------ | ------------------------------------------ | -| action-kit | `7cc2e8e6af46e7438064cc6205b22f4f7154eb94` | -| notify | `6331ff4a60956a3a2b546e84d737c9338ca46bda` | -| setup-commercekit | `7f650f3162ab027bfd784cf879832f44d3248584` | -| ccv2-build | `923535d589bd8cebece4f3cbf479608f9535c4c3` | -| ccv2-deploy | `bb6d1d6a2ac43a5b6e5b6831c78c5cf28bdb95ca` | -| ccv2-build-cleanup | `9b7ab34515a2fb8ed643f786f754e44e485868d2` | -| action-integration-tests | `e6cefd75d5a926ca2232ac06f332e5b4394a09b5` | - -Candidate consumers must use the exact-source packed tarball only in isolated -private integration workspaces, recording source commits, tarball integrity and -bundle hashes. Normal registry dependencies/lockfiles must never pretend that -0.0.6 is published or contain developer-local links. Consumer readiness remains -**BLOCKED** until a separately authorized publication, exact registry repinning, -normal bundle regeneration and green validation. Publication and source merge -do not authorize release tags, deployment, provider sends or real SAP deletion. - -## Validation - -The additive contract suite passes **394 tests in 12 files** on Node 24.21.0 -and pnpm 12.6.0. Notification-contract coverage is **100% statements, 99.64% -branches, 100% functions and 100% lines**. All existing 95% thresholds remain -unchanged, including the untouched CCv2 client package. Focused tests cover every -new status, confidential-first capture, all-input previews, forged snapshots, -malformed Unicode secrets, schema/type compatibility, private links, Markdown/ -HTML escaping, explicit truncation and the UTF-8 summary cap. - -Packed ESM, JSON schema, declarations and public export boundaries are exercised -with installed temporary consumers. Full quality, public scanning and audit must -pass before the exact-source tarball is retained for final consumer replay. -Candidate consumer totals and exact artifact/source/bundle fingerprints are -recorded separately; WIP artifact success is not final registry readiness. +## Release and validation provenance + +These helpers are available in published notification-contract 0.0.6. Use normal +exact registry dependencies, not private candidate tarballs or machine-local +links. The [publication and consumer compatibility record](release-status.md) +owns the successful publication evidence, reviewed source pins and separate +Action release status. Setup's released v1 interface does not yet contain the +reporting output present on main. + +The original source-candidate baseline table, test totals and packed replay +procedure remain archived in the +[immutable pre-publication report](https://github.com/commercekit-tools/action-kit/blob/3fecce40414d709884fa48e48eca278f470b20b0/docs/action-reporting.md#provenance-and-rollout-gate). +Those historical results do not replace current consumer validation or prove +live provider delivery, real SAP behavior or coordinated stable readiness. Independent privacy review found and reproduced two gaps before publication: known secrets encoded with lowercase/mixed-case percent hex, and Slack webhook diff --git a/docs/architecture.md b/docs/architecture.md index 1031049..651bc5b 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -2,7 +2,7 @@ Two focused ESM libraries form independent boundaries. `notification-contract` owns NotificationEvent v1, not notification delivery. `ccv2-client` owns authentication and HTTP mechanics, not CCv2 business operations. The root workspace is private. Only `packages/*` are workspace members; compatibility adapters are private test source, not packages. -Notify → notification-contract. Build and Deploy → notification-contract + ccv2-client. Future Check and reusable workflows → notification-contract. Neither library imports the other or `@actions/core` / `@actions/github`. +Notify and Setup → notification-contract. Build, Deploy, Cleanup and the integration harness → notification-contract + ccv2-client. Future Check and reusable workflows → notification-contract. Current package pins, publication evidence and released-versus-main interfaces live in the [compatibility record](release-status.md). Neither library imports the other or `@actions/core` / `@actions/github`. The contract schema is copied from Notify main at the exact SHA in `compatibility/baselines.json`. `src/schema.ts` embeds the identical JSON for a filesystem-free runtime; a parity test compares it with the canonical schema file. JSON Schema handles version, event/status compatibility, counts and bounds. Additional semantic HTTPS checks apply to links and run URLs. Additive v1 fields remain accepted by validation; factories select supported data, source, link and safe error fields. Factories accept normalized producer data rather than raw API responses. They validate the result; callers sanitize any untrusted human-readable text first. @@ -10,4 +10,4 @@ The contract schema is copied from Notify main at the exact SHA in `compatibilit The transport requires a policy for every request. `token` and `safe-read` allow bounded transient retries; `unsafe-mutation` permits one attempt for network, timeout, 429 and selected 5xx outcomes. A caller can explicitly opt into one 401 invalidation/replay for any policy. There is no method-based inference. Bodies must be replayable strings or bytes, not streams. Consumers own mutation ambiguity classification and endpoint-specific status/shape validation. -All bodies are streamed with a byte bound and request abort signal. JSON content types support objects, arrays and primitives; zero-byte bodies are empty; other content types remain binary. Error response bodies are discarded except bounded, redacted problem facts. Consumers decide whether to show those facts. No logging, telemetry, persistence, build/deployment operations or step summaries exist in either library. +All bodies are streamed with a byte bound and request abort signal. JSON content types support objects, arrays and primitives; zero-byte bodies are empty; other content types remain binary. Error response bodies are discarded except bounded, redacted problem facts. Consumers decide whether to show those facts. No logging, telemetry, persistence, build/deployment operations or step-summary I/O exist in either library. Notification-contract provides pure shared status and summary formatting; consumers own writes and preserve the underlying operation outcome. diff --git a/docs/github-packages.md b/docs/github-packages.md index 4267377..9935b26 100644 --- a/docs/github-packages.md +++ b/docs/github-packages.md @@ -2,7 +2,7 @@ This is the configuration checklist for future package releases and consumer updates. The release sequence, dispatch confirmations and recovery steps live in [RELEASING.md](../RELEASING.md). -Packages use `https://npm.pkg.github.com` and are associated with public source repository `commercekit-tools/action-kit`. Source visibility does not prove package visibility, access or publication. The current source prepares notification-contract `0.0.4` and ccv2-client `0.0.3`; verify registry availability before consumer installation. +Packages use `https://npm.pkg.github.com` and are associated with public source repository `commercekit-tools/action-kit`. Source visibility does not prove package visibility, access or publication. See the [published-package and consumer compatibility record](release-status.md) for supported exact versions and publication evidence. Verify any future version before consumer installation. ## Publishing repository @@ -28,12 +28,12 @@ For each package, open its GitHub Packages settings and verify the following aft - The publishing repository has package write access, through inherited repository access or explicit **Manage Actions access**. - Consumer repositories have **Read** permission under **Manage Actions access** as listed below. -| Package | Consumer repositories | -| ----------------------- | ------------------------------------------------------------------------------------------- | -| `notification-contract` | `commercekit-tools/notify`, `commercekit-tools/ccv2-build`, `commercekit-tools/ccv2-deploy` | -| `ccv2-client` | `commercekit-tools/ccv2-build`, `commercekit-tools/ccv2-deploy` | - -Grant the future Check repository contract access only when that repository exists and needs installation. Verify exact-version installation using each consumer repository's own workflow token; successful installation with an owner's local token does not verify Actions access. +The [consumer-pin table](release-status.md#consumer-pins) owns the current +package-specific access list, including Setup, Cleanup and the integration +harness. Grant read access only for the packages each repository installs. +Future Check or reusable-workflow repositories need grants only when they exist +and install a package. Verify installation with each consumer's own workflow +token; an owner's local token does not prove Actions access. ## Consumer CI @@ -57,7 +57,7 @@ steps: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Pin exact versions only after they are published and accessible. For the prepared release, Notify needs `@commercekit-tools/notification-contract` at `0.0.4` for cleanup events; Build and Deploy continue to use both packages at `0.0.3` until separately migrated. Regenerate and commit each consumer's lockfile and standalone Action bundle using its documented commands, then run its complete quality gate before pushing. Avoid dependency ranges, local links, git dependencies or copied library source in released Actions. +Use the supported exact pins in the [compatibility record](release-status.md#consumer-pins). For future upgrades, verify publication and access before repinning. Regenerate and commit each consumer's lockfile and standalone Action bundle using its documented commands, then run its complete quality gate before pushing. Avoid dependency ranges, local links, git dependencies or copied library source in released Actions. Users running an already bundled Action do not need package registry credentials. Package authentication is needed when installing dependencies to develop or rebuild it. diff --git a/docs/migration-plan.md b/docs/migration-plan.md index 104e728..5a84afe 100644 --- a/docs/migration-plan.md +++ b/docs/migration-plan.md @@ -1,6 +1,6 @@ # Migration plan -No consumer migration is included here. Use separate focused PRs after preview publication: +This is the reusable sequence for future package migrations. Current published versions and completed source adoptions are recorded once in the [compatibility record](release-status.md); the steps below are not a claim that those migrations are still missing. Use focused PRs for each future new version after publication: 1. Publish notification-contract preview. 2. Migrate Notify. diff --git a/docs/release-status.md b/docs/release-status.md new file mode 100644 index 0000000..5f267f8 --- /dev/null +++ b/docs/release-status.md @@ -0,0 +1,73 @@ +# Published packages and consumer compatibility + +Verified on 2026-11-18. This is the current package-publication and consumer-pin +record. Source manifest versions alone are not publication evidence. Package +SemVer, NotificationEvent schema version 1, and Action release tags are separate +contracts. + +## Published preview packages + +| Package | Supported exact version | Publication evidence | +| ------------------------------------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `@commercekit-tools/notification-contract` | `0.0.6` | Successful owner-authorized [package-only publication run 43678067818](https://github.com/commercekit-tools/action-kit/actions/runs/43678067818), from [source `3fecce4`](https://github.com/commercekit-tools/action-kit/commit/3fecce40414d709884fa48e48eca278f470b20b0) | +| `@commercekit-tools/ccv2-client` | `0.0.3` | Existing [package prerelease and source reference](https://github.com/commercekit-tools/action-kit/releases/tag/ccv2-client-v0.0.3); this package did not change in the reporting publication | + +Both packages remain pre-1.0 previews. Notification-contract 0.0.6 supplies the +shared input context, status styling, pure summary formatter and setup event. +The older 0.0.5 package lacks those additions. The 0.0.6 publication was +package-only: it did not create an Action tag, Action release, Marketplace +listing or deployment. A package-specific GitHub Release is a separate owner +operation; its absence does not make an already published registry version +unpublished. + +The publication source above is immutable provenance. Later documentation or +development-tool changes do not replace that artifact or permit republishing +the same version. Repository documentation updates do not change the README +inside an existing registry tarball. + +## Consumer pins + +These immutable manifest links record the reviewed source pins, independently +of an Action's released interface. Users of a bundled Action need no registry +credentials; repositories installing these packages for development or CI need +package read access. + +| Consumer manifest | notification-contract | ccv2-client | Availability of this integration | +| ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | ----------- | ----------------------------------------------------------------- | +| [Notify](https://github.com/commercekit-tools/notify/blob/c630d1e4c6173a38c818fac3ab80137b79ddad3d/package.json) | `0.0.6` | — | Unreleased Action source | +| [Setup CommerceKit](https://github.com/commercekit-tools/setup-commercekit/blob/a2e9f3784c7d3dca4402aee62707a9eb0124ab7b/package.json) | `0.0.6` | — | Reporting enhancement in main; released interface described below | +| [CCv2 Build](https://github.com/commercekit-tools/ccv2-build/blob/1934cf85b3655f571ca5b335e90d8d5f93d397a3/package.json) | `0.0.6` | `0.0.3` | Unreleased Action source | +| [CCv2 Deploy](https://github.com/commercekit-tools/ccv2-deploy/blob/5a9b9e348ff11294affcbbd6409abd98400b1473/package.json) | `0.0.6` | `0.0.3` | Unreleased Action source | +| [CCv2 Build Cleanup](https://github.com/commercekit-tools/ccv2-build-cleanup/blob/8b1786b731be8d2d3fac137cd358d2ee5488bd58/package.json) | `0.0.6` | `0.0.3` | Unreleased Action source; real SAP apply remains blocked | +| [Action integration tests](https://github.com/commercekit-tools/action-integration-tests/blob/1174dd82b4a8c4f049e234d1862387b56571c0b0/package.json) | `0.0.6` | `0.0.3` | Integration harness, not a distributable Action | + +Grant `notification-contract` read access to all six repositories above and +`ccv2-client` read access to Build, Deploy, Cleanup and the integration harness. +Check remains a future Action consumer; its private synthetic compatibility +harness does not create a Check repository or release. General-purpose reusable +workflows also remain future consumers. + +### Released Setup interface and main reporting + +Setup's existing `v1` and `v1.0.0` tags resolve to +[`dffa026`](https://github.com/commercekit-tools/setup-commercekit/blob/dffa026980479cf96d7a5f4763602d39a7325a7c/action.yml). +That released metadata has no `notification-event` output. Main's +[reporting metadata](https://github.com/commercekit-tools/setup-commercekit/blob/a2e9f3784c7d3dca4402aee62707a9eb0124ab7b/action.yml) +adds it using notification-contract 0.0.6. Document that enhancement as unreleased +until a separately approved Action release includes it; installing a package or +merging source does not change an existing Action tag. + +## Remaining gates and maintenance + +Normal registry installation and the source pins above resolve the former +candidate-publication dependency. They do not prove live provider delivery, +real SAP behavior or the coordinated stable-release gates. Follow the existing +[stable policy](package-release-policy.md), consumer verification runbooks and +owner approvals. In particular, preserve Cleanup's +[production eligibility and operational-protection gates](https://github.com/commercekit-tools/ccv2-build-cleanup/blob/8b1786b731be8d2d3fac137cd358d2ee5488bd58/docs/release-readiness.md#remaining-gates-before-an-action-release-or-real-apply). + +Update this record when supported package versions, consumer pins or released +interfaces change, using successful publication evidence and reviewed immutable +consumer references. Keep original extraction/candidate baselines as historical +provenance. Do not copy their old publication blockers into current setup +instructions or infer readiness from a manifest version alone. diff --git a/docs/remaining-extraction-audit.md b/docs/remaining-extraction-audit.md index 40639ba..7bae53b 100644 --- a/docs/remaining-extraction-audit.md +++ b/docs/remaining-extraction-audit.md @@ -1,4 +1,10 @@ -# Remaining consumer extraction audit +# Historical remaining consumer extraction audit + +This records the 2026-11-11 extraction decisions and source-stage rollout plan. +The additive packages and later consumer adoptions are now published and tracked +in the [current compatibility record](release-status.md). Keep the original +baselines and unreleased wording below as historical evidence, not current +installation instructions. Compared current remote main and clean local consumer branches on 2026-11-11. The shared schema, event factories, generic context, token lifecycle, bounded HTTP reads and policy-driven retries are already consumed from published packages at exactly `0.0.2`. diff --git a/packages/ccv2-client/CHANGELOG.md b/packages/ccv2-client/CHANGELOG.md index 4eb6b90..7a0691e 100644 --- a/packages/ccv2-client/CHANGELOG.md +++ b/packages/ccv2-client/CHANGELOG.md @@ -2,7 +2,7 @@ ## 0.0.3 -Add `encodeCcv2PathSegment` for the existing Build/Deploy raw identifier policy, with fixed non-disclosing errors and a distinct `INVALID_PATH_ENCODING` code for malformed Unicode so Action adapters can preserve existing diagnostics. Existing URL validators and request policies are unchanged. Prepared for preview publication; consumer migrations must verify registry availability before installation. +Add `encodeCcv2PathSegment` for the existing Build/Deploy raw identifier policy, with fixed non-disclosing errors and a distinct `INVALID_PATH_ENCODING` code for malformed Unicode so Action adapters can preserve existing diagnostics. Existing URL validators and request policies are unchanged. Published as a preview; see the [current publication/consumer record](../../docs/release-status.md). Future migrations must verify registry availability before installation. ## 0.0.2 diff --git a/packages/ccv2-client/README.md b/packages/ccv2-client/README.md index 2f9ce05..30c5e9d 100644 --- a/packages/ccv2-client/README.md +++ b/packages/ccv2-client/README.md @@ -36,7 +36,7 @@ Inject fetch, clock, abortable sleep, random and secret masking through `runtime Install from GitHub Packages after a supported version is published. Configure `@commercekit-tools:registry=https://npm.pkg.github.com`; local users need a classic PAT with `read:packages` in user-level configuration. Consumer Actions need package Actions read access and `GITHUB_TOKEN` with `packages: read`. See the repository authentication guide. Pin exact versions, never ranges. -Source version: `0.0.3`, prepared for pre-1.0 integration under the `preview` dist-tag. This manifest is not publication evidence. Verify registry availability before installation and pin `0.0.3` exactly. Stable API and coordinated consumer/Sandbox validation remain future gates. Reservation versions are unsupported. +Version `0.0.3` is a published pre-1.0 preview. See the [publication and consumer compatibility record](../../docs/release-status.md) for evidence and supported exact pins. Verify future versions before installation. Stable API and coordinated release validation remain separate gates. Reservation versions are unsupported. Independent package SemVer applies; stable breaking changes require a major increment. NotificationEvent schema version is separate from package version. Preserve current consumer contracts during migration. No telemetry or logging is performed. Use synthetic tests and register exact runtime secrets; pattern redaction cannot identify all secrets. diff --git a/packages/notification-contract/CHANGELOG.md b/packages/notification-contract/CHANGELOG.md index f2f3e86..f11d4ba 100644 --- a/packages/notification-contract/CHANGELOG.md +++ b/packages/notification-contract/CHANGELOG.md @@ -1,6 +1,6 @@ # notification-contract changelog -## 0.0.6 — unpublished candidate +## 0.0.6 — published preview - Add shared bounded input snapshots, confidential-first capture, safe text display, status styles and pure GitHub summary formatting. @@ -10,7 +10,9 @@ Unicode secrets safely in encoded redaction forms. - Redact mixed-case percent-encoded secret forms and canonical webhook hostname variants in inputs, summaries and links. -- Registry readiness remains blocked until separately authorized publication. +- Published on 2026-11-15 through owner-authorized package-only run 43678067818. + See the [central publication/consumer record](../../docs/release-status.md) for + immutable evidence and the separately unreleased Action enhancements. ## 0.0.5 diff --git a/packages/notification-contract/README.md b/packages/notification-contract/README.md index fa9f412..eb27749 100644 --- a/packages/notification-contract/README.md +++ b/packages/notification-contract/README.md @@ -1,6 +1,6 @@ # @commercekit-tools/notification-contract -Provider-neutral NotificationEvent v1 types, schema and validation for Notify, Build, Deploy, future Check and reusable workflows. It also provides pure status/summary formatting and bounded input display context. No CCv2 calls, CLI diagnostics, Action I/O, polling, provider rendering or webhook delivery. +Provider-neutral NotificationEvent v1 types, schema and validation for Notify, Setup, Build, Deploy and Cleanup, with future Check/reusable-workflow consumers. It also provides pure status/summary formatting and bounded input display context. No CCv2 calls, CLI diagnostics, Action I/O, polling, provider rendering or webhook delivery. Public exports: `NotificationEvent`, `NotificationStatus`, `NotificationEventType`, `NotificationSource`, `NotificationContext`, `NotificationLink`, `SafeNotificationError`, `CheckEventData`, `BuildEventData`, `DeploymentEventData`, `BuildCleanupEvent`, `BuildCleanupEventData`, `BuildCleanupStatus`, `BuildCleanupInputSnapshot`; `validateNotificationEvent`, `parseNotificationEventJson`, `validateNotificationLink`, `validateGitHubRunUrl`, `extractSafeGitHubContext`, `mergeProducerContext`, `mergeNotifierContext`, `createCheckEvent`, `createBuildEvent`, `createDeploymentEvent`, `createBuildCleanupEvent`, `redactKnownSecrets`, `sanitizeBoundedText`, `sanitizeLabel`, `sanitizeErrorMessage`. @@ -22,12 +22,11 @@ Extraction reads only approved runner fields, never event payloads. Explicit pro Install from GitHub Packages after a supported version is published. Configure `@commercekit-tools:registry=https://npm.pkg.github.com`; local users need a classic PAT with `read:packages` in user-level configuration. Consumer Actions need package Actions read access and `GITHUB_TOKEN` with `packages: read`. See the repository authentication guide. Pin exact versions, never ranges. -Source version: `0.0.6`, an **unpublished candidate** for consistent ecosystem -reporting. Exact registry checks verified publication through `0.0.5`; that -version lacks the new helpers and setup event. Do not pin `0.0.6` as a registry -dependency until separately authorized publication is verified. Candidate tests -use exact-source packed tarballs in isolated private consumers with integrity -records; normal lockfiles must not contain machine-local links. +Version `0.0.6` is a published pre-1.0 preview. Use the +[publication and consumer compatibility record](../../docs/release-status.md) +for immutable publication evidence, supported exact pins and the distinction +between source integrations and released Action interfaces. Verify future +versions before adoption; normal lockfiles must not contain machine-local links. Independent package SemVer applies; stable breaking changes require a major increment. NotificationEvent schema version is separate from package version. Preserve current consumer contracts during migration. No telemetry or logging is performed. Use synthetic tests and register exact runtime secrets; pattern redaction cannot identify all secrets. @@ -85,7 +84,7 @@ then validates the event. Outcome/severity interpretation belongs to the produce a warning must not hide a deletion failure or unknown mutation result. Accepted deletion counts still describe initiation rather than physical removal. -## Consistent Action reporting — 0.0.6 candidate +## Consistent Action reporting — 0.0.6 preview New public exports: `SetupEvent`, `SetupEventData`, `NotificationInputContext`, `NotificationInputData`, `ActionInputDefinition`, `NotificationStyle`,