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
11 changes: 9 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Contributing

Normal development uses exact published notification-contract 0.0.6 and
ccv2-client 0.0.3. A normal frozen installation and the existing quality command
validate notifications, input masking and shared summaries. No source-tarball
preparation, candidate environment flag or action-kit checkout is needed.
[Reporting evidence](docs/consistent-reporting.md) retains the prior source-stage
provenance separately.

Use Node **24.21.0**, pnpm **12.6.0**, and Corepack:

```sh
Expand All @@ -22,12 +29,12 @@ Commit TypeScript source, focused tests, lockfile changes, and rebuilt `dist/` t

Use visibly synthetic fixtures only. No real SAP credentials, tenant endpoints, customer identifiers, production subscription requests, private source, local machine paths, or live API recordings belong here. IntelliJ files, node_modules, coverage, and local environment files are ignored. Never read the complete GitHub event payload into notification data.

Both shared packages are pinned to `0.0.3`. `.npmrc` commits only the `@commercekit-tools` registry mapping. Before installation, configure a **user-level**, untracked npm configuration containing `//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}` and supply `NODE_AUTH_TOKEN` through your secure credential tooling. Use a GitHub token with `read:packages` and access to both packages. Never put the token in repository configuration or command-line arguments. pnpm 12 verifies lockfile supply-chain metadata during installation; after a lockfile change, repeat the authenticated frozen installation before running other pnpm commands.
Shared packages are pinned to notification-contract `0.0.6` and ccv2-client `0.0.3`. `.npmrc` commits only the `@commercekit-tools` registry mapping. Before installation, configure a **user-level**, untracked npm configuration containing `//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}` and supply `NODE_AUTH_TOKEN` through your secure credential tooling. Use a GitHub token with `read:packages` and access to both packages. Never put the token in repository configuration or command-line arguments. pnpm 12 verifies lockfile supply-chain metadata during installation; after a lockfile change, repeat the authenticated frozen installation before running other pnpm commands.

CI and the manual Sandbox workflow grant only `contents: read` and `packages: read`, use the existing SHA-pinned setup-node Action with the scoped registry, and expose `secrets.GITHUB_TOKEN` only to installation steps. Package owners must grant this repository Actions read access to both packages. The bundled Action needs no registry credentials.

`pnpm contracts:check` verifies installed and declared package versions, imports the package's public schema export, validates the captured baseline events, rejects the old duplicate schema, and runs Action-level compatibility scenarios offline. It never fetches Notify main or a live schema. Baseline fixtures were captured from `ebdc830161cf9122121ddeb137d005f375063997`; do not regenerate them merely to accept a changed result.

Review package upgrades for authentication/refresh behavior, explicit retry policies, disclosure, event compatibility, licenses, and bundle changes. Use exact published versions, run all quality gates, and rebuild committed dist. The release-age exceptions in pnpm-workspace.yaml apply only to the two explicitly reviewed `0.0.3` versions; they do not exempt future versions.
Review package upgrades for authentication/refresh behavior, explicit retry policies, disclosure, event compatibility, licenses, and bundle changes. Use exact published versions, run all quality gates, and rebuild committed dist. The release-age exceptions in pnpm-workspace.yaml apply only to the explicitly reviewed client `0.0.3` and contract `0.0.6` versions; they do not exempt future versions.

Read [Sandbox policy](docs/sandbox.md) before requesting live smoke approval. Routine PR CI must never create Sandbox runs. No deployment implementation, provider delivery, new shared package publication, tags, or release belongs in this change. Review [RELEASING.md](RELEASING.md).
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CommerceKit CCv2 Build

> **Published reporting dependency:** this unreleased Action now consumes exact
> notification-contract 0.0.6 from GitHub Packages, with a regenerated registry
> lockfile and bundled runtime. All input names, safe status details and GitHub
> run summaries use the shared formatting and masking contract. Normal validation
> is being recorded in [the reporting report](docs/consistent-reporting.md).
> Existing input and remote-operation behavior is unchanged.

**Status: Initial implementation under development.**

No Action release or Marketplace listing is available yet. Both this Action and CommerceKit Notifications remain unreleased. The examples below describe future usage after coordinated release approval.
Expand Down Expand Up @@ -82,7 +89,7 @@ All seven outputs are strings and are written before handled failure is reported
| `result-json` | Always on handled completion | Sanitized schemaVersion 1 result |
| `notification-event` | Always on handled completion | Valid NotificationEvent v1 `ccv2.build.completed` |

`result-json` contains `schemaVersion`, `outcome`, `pollCount`, `retryCount`, `durationMs`, and `timedOut`. Known optional fields are `subscriptionCode`, `applicationCode`, `buildCode`, `buildName`, `branch`, `buildStatus`, `percentage`, `numberOfTasks`, `startedTaskCount`, and `error` (`code`, `message`, optional `httpStatus`). Each JSON output is capped at 16 KiB. There are no raw task payloads, headers, logs, or raw API responses.
`result-json` contains `schemaVersion`, `outcome`, `pollCount`, `retryCount`, `durationMs`, and `timedOut`. Known optional fields are `subscriptionCode`, `applicationCode`, `buildCode`, `buildName`, `branch`, `buildStatus`, `percentage`, `numberOfTasks`, `startedTaskCount`, and `error` (`code`, `message`, optional `httpStatus`). Each structured JSON output is bounded to 64 KiB, aligned with the shared parser and cleanup. There are no raw task payloads, headers, logs, or raw API responses.

The notification carries only supported build fields, safe error information, and approved GitHub context. `retryCount` counts actual extra HTTP attempts, including an authorization refresh replay; it is not the poll count. The workflow run link is included when safely constructible. No Cloud Portal UI link is guessed. The [shared contract](contracts/README.md) is validated at runtime and in tests.

Expand All @@ -106,7 +113,7 @@ Create-build POST is **not** automatically retried after timeout, network ambigu

## Shared dependencies

`@commercekit-tools/notification-contract@0.0.3` and `@commercekit-tools/ccv2-client@0.0.3` are pinned exactly and bundled into `dist/index.js`. Workflow consumers do not install these packages, authenticate to GitHub Packages, or grant `packages: read` to run the bundled Action. Build endpoint validation, polling, deadlines, status mapping, result JSON, outputs, and summaries remain owned by this Action. See the [migration inventory and compatibility checks](docs/shared-packages.md).
`@commercekit-tools/notification-contract@0.0.6` and `@commercekit-tools/ccv2-client@0.0.3` are pinned exactly and bundled into `dist/index.js`. Workflow consumers do not install these packages, authenticate to GitHub Packages, or grant `packages: read` to run the bundled Action. Build endpoint validation, polling, deadlines, status mapping, result JSON, outputs, and summaries remain owned by this Action. See the [migration inventory and compatibility checks](docs/shared-packages.md).

Maintainers and CI need GitHub Packages read access for dependency installation; see [CONTRIBUTING.md](CONTRIBUTING.md). Package upgrades require compatibility review and a rebuilt bundle. Publishing a shared package does not release this Action.

Expand Down
13 changes: 12 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Releasing

## Consistent reporting dependency

Notification-contract **0.0.6** is published through the owner-authorized
[package-only run 43678067818](https://github.com/commercekit-tools/action-kit/actions/runs/43678067818).
This consumer pins the exact registry artifact and bundles it normally with
ccv2-client 0.0.3 unchanged. Candidate-only validation switches are retired.
Normal full quality and hosted checks must pass on the current PR head before
its authorized source merge. See [reporting evidence](docs/consistent-reporting.md).
All remaining Action-release, provider/live validation and owner gates below
remain separate. Package publication does not create an Action tag or release.

**UNRELEASED — NO RELEASE UNTIL THE COMPLETE ACTION SUITE IS SANDBOX-VERIFIED.**

Implementation may merge after review. Do not create `v1.0.0`, create or move `v1`, publish a GitHub Release or Marketplace listing, or publish an npm package while these gates remain open.
Expand All @@ -21,4 +32,4 @@ Implementation may merge after review. Do not create `v1.0.0`, create or move `v

The manual Sandbox workflow requires owner approval after PR review and local/CI success. The five scenarios passed locally with the same guarded scripts and bundled Action under explicit owner approval on 2026-11-09; see [validation evidence](docs/build-validation.md). GitHub-hosted dispatch was unavailable before the workflow existed on main. Do not infer live smoke authorization from permission to merge. No release workflow is provided here. Future maintainers must separately design and review coordinated version-tag and publication procedures after every gate passes.

The shared-package migration does not satisfy any additional live validation gate and does not authorize release. Both shared dependencies remain exactly pinned at `0.0.3` and included in dist. Before approving a package upgrade, review the public contract, authentication/retry behavior, licenses, offline compatibility fixtures, standalone bundle test, and reproducibility. Existing Sandbox evidence describes the earlier implementation; live Sandbox verification of a migration requires separate owner authorization.
The shared-package migration does not satisfy any additional live validation gate and does not authorize release. Notification-contract is exactly `0.0.6` and ccv2-client remains exactly `0.0.3`, both included in dist. Before approving a package upgrade, review the public contract, authentication/retry behavior, licenses, offline compatibility fixtures, standalone bundle test, and reproducibility. Existing Sandbox evidence describes the earlier implementation; live Sandbox verification of a migration requires separate owner authorization.
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

Loading
Loading