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
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ temporary run files, provider payloads, or raw Sandbox state.

Keep one scenario catalog and one shared run controller. Reuse the published
contract validator and CCv2 client instead of copying schema, token, retry, or
transport implementations. Actual Action pins belong in their existing
composite wrappers; update those pins through reviewed changes and rerun the
required integration suites before claiming the new revisions verified.
transport implementations. Update the `action-refs.json` catalog, existing workflow/composite
pins and `action-inputs.json` metadata together; the offline policy checks their agreement.
Current setup guides link to that catalog, while dated validation reports retain the
revisions they actually tested. Rerun the required integration suites with separate live-run
authorization before claiming new revisions verified.

Offline tests must inject network behavior and must not create Sandbox runs or
send webhook requests. Live suites use the manual `integration.yml` workflow,
Expand Down
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ Start with [setup and dispatch](docs/SETUP.md). The [scenario reference](docs/SC
defines expected negative outcomes and required assertions. Passing offline CI is
not evidence that live Sandbox scenarios or provider delivery have passed.

The separate approval/deploy and cleanup workflows have
[recorded hosted passes](docs/VALIDATION.md#current-hosted-workflow-results--006).
The original `smoke`, `full` and `providers` matrices, live Slack/Teams delivery and
dedicated hosted cancellation/timeout scenarios remain **NOT RUN** in that evidence.

## Additional manual workflows

| Workflow | Order and effect |
Expand All @@ -45,9 +50,10 @@ crosses jobs; source-run credentials are never exported or uploaded. Approval
starts a fresh synthetic run, with the source code mapped to an `approved-...`
fixture identifier because the Sandbox fixture API does not accept dots in keys.

See [workflow setup, dispatch and limits](docs/WORKFLOWS.md). In particular,
merged Sandbox source does not prove that the hosted `/cleanup-fixture` endpoint
is deployed. Live workflow results are recorded separately from offline tests.
See [workflow setup, dispatch and limits](docs/WORKFLOWS.md) and the
[dated hosted results](docs/VALIDATION.md#current-hosted-workflow-results--006).
Future Action or Sandbox changes require their own validation; the presence of a workflow
or merged source does not establish a new hosted pass.

## Consistent reporting validation

Expand All @@ -71,12 +77,12 @@ pnpm install --frozen-lockfile
pnpm quality
```

Shared schema validation and CCv2 HTTP/authentication come from the existing
`@commercekit-tools/notification-contract` and `@commercekit-tools/ccv2-client`
packages, pinned to `0.0.6` and `0.0.3` respectively. These package versions are separate from Action
versions. Action revisions are catalogued in `action-refs.json`. Producer pins live in
the composite wrappers under `.github/actions/`; CLI setup is pinned in the
build/approval workflow.
The harness reuses `@commercekit-tools/notification-contract` and
`@commercekit-tools/ccv2-client`. See the
[revision and compatibility guide](docs/SETUP.md#action-and-package-revisions) for the
current Action catalog, declared package versions, frozen resolutions and limits of prior
run evidence. Producer refs remain in the policy-checked composite wrappers; CLI Setup is
pinned in the build/approval workflow.

See [Contributing](CONTRIBUTING.md), [agent guidance](AGENTS.md), and the
[security policy](SECURITY.md) before changing the harness.
45 changes: 28 additions & 17 deletions docs/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ commits. This setup does not deploy the Sandbox or release any Action.
3. Allow the declared `contents: read` and `packages: read` job permissions. The
workflows need no contents-write, release, or package-publish permission.
4. In each shared package's **Manage Actions access**, grant this repository
**Read** access to `notification-contract` and `ccv2-client`. The contract is pinned
exactly to `0.0.6` and the client to `0.0.3`. A successful install with an owner's local credential does
not prove the repository's workflow token has package access.
**Read** access to `notification-contract` and `ccv2-client`, using the
[declared package revisions](#action-and-package-revisions). The recorded hosted
workflows verified their job-token installs; an owner's local install alone would
not prove that access.
5. Create/configure the environments below before the first live dispatch.

The dependency installation step supplies the automatic
Expand Down Expand Up @@ -59,18 +60,23 @@ application repository is required.

## Action and package revisions

The composite wrappers pin these reviewed Action commits:
The [Action revision catalog](../action-refs.json) is the current authority for the
reviewed immutable commits, including Build, Deploy, Notify, Cleanup and CLI Setup.
The offline policy checks every workflow/composite reference against that catalog and binds
the [input metadata snapshot](../action-inputs.json) to the same refs. Current setup guides
link to these files instead of maintaining another SHA table.

| Action | Commit |
| ------ | ------------------------------------------ |
| Build | `923535d589bd8cebece4f3cbf479608f9535c4c3` |
| Deploy | `e2b3f4cb7e03bfbcbba22eaf84545829b5629557` |
| Notify | `8242af6a4aaafd7917c93f0db27f1794266efeee` |
The [package manifest](../package.json) declares the assertion helpers' exact versions;
the [frozen lockfile](../pnpm-lock.yaml) records their registry resolutions. Shared package
versions, CLI binary versions and Action release tags are separate version spaces. The
committed Action bundles include their own dependencies; running a bundle alone does not
require registry authentication.

Their committed bundles already include their shared dependencies. Executing a
bundle alone needs no registry authentication. This repository separately
installs the shared packages because its assertion and Management API helpers
reuse them. Package version `0.0.3` is not an Action release tag.
The [dated validation record](VALIDATION.md#current-hosted-workflow-results--006) preserves
the exact revisions that actually ran. Historical SHA tables remain evidence of those runs,
not a second current pin catalog. Adopting a new ref does not transfer an older run's result
to that ref: review the catalog, wrappers and input metadata together, run offline checks,
then obtain separate authorization for any required live suite.

## Dispatch

Expand Down Expand Up @@ -106,9 +112,10 @@ gh workflow run integration.yml \
-f provider-confirmation=SEND-COMMERCEKIT-TEST-NOTIFICATION
```

These commands are instructions, not evidence of completed live runs. Initial
repository creation and offline CI do not execute these suites. Scheduling and
cross-repository automatic triggering are not configured.
These commands are instructions, not evidence of completed live runs. The original
`smoke`, `full` and `providers` suites remain **NOT RUN** in the recorded hosted evidence.
The separate approval/deploy and cleanup workflows have passed as described below.
Scheduling and cross-repository automatic triggering are not configured.

## What each job does

Expand Down Expand Up @@ -193,4 +200,8 @@ The additional `build-approve-deploy.yml` and `cleanup.yml` workflows are manual
main-only Sandbox integrations. Their exact order, native approval environment,
synthetic handoff, cleanup expectations and dispatch commands are in
[WORKFLOWS.md](WORKFLOWS.md). No permanent SAP or Sandbox secrets are required.
The existing smoke/full/provider suites and their environments remain unchanged.
Both workflows [passed on November 15, 2026](VALIDATION.md#current-hosted-workflow-results--006)
with provider delivery disabled. That evidence includes the owner approval, recreated
synthetic build, shared result/event assertions and verified disposable-run removal.
It does not cover the original smoke/full/provider matrix or live Slack/Teams delivery.
Their existing environments and separate webhook/confirmation requirements remain unchanged.
33 changes: 21 additions & 12 deletions docs/WORKFLOWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ publish packages, tag releases, deploy the Sandbox Worker or enable real deletio
Both run only after a deliberate `workflow_dispatch` on this repository's main
branch with exact confirmation `RUN-COMMERCEKIT-SANDBOX-TESTS`.

Use the [revision catalog and compatibility guide](SETUP.md#action-and-package-revisions)
for current pins. The [dated validation record](VALIDATION.md#current-hosted-workflow-results--006)
documents the hosted approval/deploy and cleanup workflows that passed on November 15, 2026.

## Build → check → cloud build → approval → synthetic deploy

`build-approve-deploy.yml` has four ordered jobs:
Expand Down Expand Up @@ -66,7 +70,7 @@ gh api repos/commercekit-tools/action-integration-tests/environments/sandbox-dep
gh api repos/commercekit-tools/action-integration-tests/environments/sandbox-deploy-approval/deployment-branch-policies
```

After this workflow is reviewed and merged, dispatch deliberately:
For a separately authorized future run, dispatch deliberately:

```sh
gh workflow run build-approve-deploy.yml \
Expand Down Expand Up @@ -97,7 +101,7 @@ check listing counters to establish multi-page discovery. Fixture/control-plane
operations do not count as target DELETE requests. The run is removed in an
always-run final step, including partial preparation and assertion failures.

After review/merge and hosted fixture capability verification:
For a separately authorized future dry-run:

```sh
gh workflow run cleanup.yml \
Expand All @@ -117,17 +121,22 @@ read-only permissions, exact Action/CLI pins, fixed origin, private lifecycle,
credential-free handoff, actual shared event validation and zero-mutation cleanup
assertions. See [VALIDATION.md](VALIDATION.md) for commands actually run.

The hosted Sandbox must support `PUT /sandbox/v1/runs/{id}/cleanup-fixture`, which
is present in the reviewed merged Sandbox source. A read-only check of the hosted public control OpenAPI also advertises this
operation. That metadata read does not execute the fixture handler, and the
Sandbox Worker was not deployed by this task. Hosted capability and end-to-end workflow execution are separate
validation gates. Until a deliberately authorized run succeeds, do not claim
that the hosted approval/deploy or cleanup integrations have passed. The first
manual runs should be inspected for package-read access, fixture API support,
actual approval behavior, Action assertions and successful final run removal.
The recorded November 15 hosted runs verified the required
`PUT /sandbox/v1/runs/{id}/cleanup-fixture` handler, job-token package access, native owner
approval, actual Build/Deploy/Cleanup outputs and assertions, and removal of all three
disposable runs. The approved deploy recreated a fixture in a fresh run; it did not preserve
the original build resource. Both cleanup passes retained the expected blocked dry-run
outcome and made zero target API mutations. See [VALIDATION.md](VALIDATION.md) for the exact
tested source refs, run/job links and evidence limits.

These are passes for the recorded revisions and configuration. After adopting new Action
or Sandbox code, verify the relevant capability and assertions again through the separately
authorized workflow. A public OpenAPI read can confirm an advertised contract, but cannot
establish handler execution or fresh end-to-end success.

The original Build/Deploy/Notify suites remain available through `integration.yml`.
Live provider messages still require their separate confirmation and webhook
setup; these two new workflows send no provider messages. Hard runner termination
Their hosted smoke/full/provider matrix and live provider delivery remain **NOT RUN** in
the current evidence. Provider messages still require their separate confirmation and webhook
setup; the recorded approval/deploy and cleanup runs sent no provider messages. Hard runner termination
can prevent final cleanup; the Sandbox's 24-hour expiry remains a fallback. None
of this clears the cleanup Action's real-SAP eligibility/release gates.