Skip to content

Latest commit

 

History

History
122 lines (101 loc) · 9.53 KB

reporting-validation.md

File metadata and controls

122 lines (101 loc) · 9.53 KB

Reporting consistency validation

Release compatibility

Action reference Installation Notification event and consistent summaries
Released v1 / v1.0.0, commit dffa026980479cf96d7a5f4763602d39a7325a7c Available Absent from this release
Reviewed main commits since 52a5a098d89f9ef2c42a234b4c3baa5d60a7a896 Available Implemented and bundled; unreleased as an Action

The existing release is independent of the CLI's Preview maturity. Use the released alias for installation, or a reviewed immutable main commit when explicitly testing reporting. Notify must support the same setup event before it receives that output; use compatible immutable commits rather than an assumed future tag. This record owns release-state details linked by the README and release guide.

Published dependency and provenance

The owner-authorized package-only publication run 43678067818 published @commercekit-tools/notification-contract@0.0.6 from action-kit main 3fecce40414d709884fa48e48eca278f470b20b0. Its main CI and CodeQL passed before publication. Registry version, integrity and required public exports were verified before this consumer adoption.

  • Inspected setup main: 7f650f3162ab027bfd784cf879832f44d3248584.
  • Feature source before registry adoption: 5b8f44d20ecefa8196800f9c90ee5ecf79e48a5c.
  • Exact normal dependency: 0.0.6, installed from GitHub Packages with a reproducible registry lockfile and reviewed release-age exception.
  • Registry integrity: sha512-n6F84900sDPBeYm5dnf8HLCM9B2DUVATEeF717dqKsSXTJtq1FIj/3hZ2UcNTtXe7v8R90HYF6HIom4auM8Kyw==.
  • Registry shasum: 8030f643d1dd6d741caa2c3c0ba321ad82b30cca.
  • Published artifact SHA256: e4b79576328c2992a96fed087e9ba6e63970e8b54d6fca976a6652702a7a73a9.
  • Regenerated normal bundle SHA256: ccec5024b018a009fada020bb6cebe292160b45cc2ee1224f6e4d957d9c81bae, byte-identical to the final reviewed source-packed candidate.

Normal installation and runtime require no candidate flag, file dependency or shared-source checkout. Runtime consumers execute the standalone bundle without registry credentials. Existing version input and installation/integrity behavior remain unchanged. Shared APIs own captured input context, bounded redaction, setup event factories/schema validation, safe GitHub context and common summaries.

Recorded registry-adoption checks

The following records the original registry-backed adoption, rather than claiming that historical results validate every later commit.

Status vocabulary: PASS, FAIL, BLOCKED, NOT RUN.

Check Status Evidence
Frozen installation and public exports PASS Exact registry 0.0.6 and required public setup/reporting APIs verified
Formatting, lint and strict types PASS Normal source passes without candidate switches
Unit/integration coverage PASS 154 tests/11 files; 94.06% statements, 90.29% branches, 93.54% functions, 94.21% lines; existing thresholds and inclusion unchanged
Actual registry-backed bundle integration PASS Public CLI preview.2 installed/verified on darwin-arm64, verified cache reuse, success and invalid-input failure events/summaries
Normal bundle regeneration PASS SHA256 above matches the reviewed candidate exactly
Public scan, production audit, workflow lint PASS Scan passed; no known vulnerabilities; local actionlint and diff checks passed
Final committed bundle check PASS Full normal pnpm quality passed after committing registry-backed dist; no generated changes
Six native runner installation/cache jobs PASS Main CI run 43679114996 passed all six targets at 52a5a098d89f9ef2c42a234b4c3baa5d60a7a896; those checks verified installation/cache outputs, not reporting assertions
Live Slack/Teams delivery NOT RUN Notify owns this separately authorized capability; no provider send performed

Commands actually executed: pnpm install --frozen-lockfile, pnpm bundle, public-export assertions, pnpm format:check, pnpm lint, pnpm typecheck, pnpm test:coverage, pnpm test:integration, pnpm scan:public, pnpm audit --prod --audit-level=high, actionlint and git diff --check. The recorded main CodeQL run also passed. Every later review still requires checks for its exact head. The registry-publication compatibility gate is resolved.

Tests cover complete input/result projection, workflow reference parity, allowlisted GitHub environment access, safe invalid settings, JWT/URL credential redaction, bounded truncation, malicious Markdown/HTML, cache reuse, known and unknown failures, and preservation when reporting fails. The bundled integration executes the actual entry point, checks two successful invocations plus invalid input failure, and validates events/summaries in controlled temporary files. No SAP operation is involved.

Hosted reporting checks

The Linux quality job now runs the existing pnpm test:integration once. It executes the committed bundle with an isolated tool cache, parses the public contract schema, checks fresh/cached success events and summaries, and verifies the handled invalid-input failure and synthetic JWT redaction in events, summaries and logs. No provider message is sent.

The six existing native jobs still install and reuse the Action exactly as before. Their verifier additionally checks both actual notification outputs against installed version, target, build identity, cache result, bounded input context and duration, and rejects private executable paths. Shared assertions are reused by the isolated integration instead of copying reporting policy or repeating its complete fresh/cache/failure flow on six platforms. Installation and reporting failures must remain visible; reporting errors do not change the Action's underlying installation outcome.

pnpm test:scripts covers missing/malformed outputs, mismatched facts, private paths and the installed patched minimatch resolutions. It is part of quality; the existing unit coverage thresholds and production audit remain unchanged.

Historical candidate evidence

Before publication, source 475cc4db42f79310240496201f90d7047aa54330 was packed and tested in private consumers. Its artifact integrity matches the published registry package exactly. The pre-publication procedure and former compatibility blocker are archived at immutable setup commit 5b8f44d20ecefa8196800f9c90ee5ecf79e48a5c. Those private file dependencies are not part of normal development or CI.

Remaining release gates

All final-head quality, CodeQL and six native runner jobs must pass before merge. Compatible Notify must consume the same published contract before receiving commercekit.setup.completed. Action release review, Git tags/Marketplace publication and live provider validation remain separate owner decisions. No OAuth, transport, delivery or replacement schema was added. Only the shared package publication was authorized; no Action release, Git tag, deployment, provider send or SAP operation is part of this consumer update.