Skip to content

PK-20 Add registry release CI and artifact integrity checks #17

Closed

Description

@Ducksss

Summary

Make registry build correctness a CI-enforced release gate instead of a manual local convention.

For agentic workers: Use @superpowers. Start in an isolated worktree, use superpowers:writing-plans for multi-file work, prefer superpowers:subagent-driven-development for implementation, and use superpowers:verification-before-completion before claiming completion.

Phase

Release reliability

Current Baseline

  • payload-kit init, payload-kit add, and payload-kit doctor exist in the alpha CLI.
  • Five public starter kits exist: hero-basic, feature-proof-grid, cta-split, faq-simple, and testimonial-quote.
  • The site has public /kits and /docs/payload-kits surfaces.
  • The repo can emit flat public registry JSON into public/ with pnpm registry:build.

Scope

  • Add CI coverage that runs the public registry build and verifies generated artifact shape.
  • Check that every manifest-backed public kit has a matching registry item and generated item JSON.
  • Check that root registry.json does not embed file content while item JSON files do include installable content.
  • Fail CI on stale generated registry output, missing items, malformed JSON, or manifest/registry drift.

Out Of Scope

  • Deploying registry artifacts to production.
  • Changing kit schemas or kit visual design.
  • Private registry release automation.

Implementation Guidance

  • Prefer a small script or test that can run locally and in CI with the same command.
  • Keep the check deterministic: it should not depend on network access except for dependency installation already required by the project.
  • Wire the check into the existing test or CI style used by the repository.

Acceptance Criteria

  • A CI run fails if a public manifest lacks a registry item.
  • A CI run fails if an item JSON file is missing after registry build.
  • A CI run fails if root registry.json contains embedded file content.
  • The local verification command is documented for maintainers.

Test Plan

  • pnpm registry:build.
  • The new registry integrity check command.
  • pnpm lint and pnpm exec tsc --noEmit if code is added.
  • A negative local smoke, if practical, by temporarily breaking a copied fixture rather than mutating tracked files.

Definition Of Done

  • Acceptance criteria are satisfied and checked off.
  • Test plan has been run or any skipped test has a concrete reason.
  • Public docs or runbooks are updated when behavior changes.
  • The implementation notes mention any follow-up issue that should be created.

Activity

  1. added
    enhancement
    on May 13, 2026
  2. Ducksss commented on Jun 12, 2026

    @Ducksss
    OwnerAuthor

    PR #57 advances registry reliability by keeping pnpm test:registry green and fixing the scheduled/manual fresh-smoke workflow argument form from pnpm test:fresh -- --... to pnpm test:fresh --....

    Validation on 2026-06-12:

    • pnpm test:registry passed.
    • pnpm test:release passed.
    • pnpm test:fresh --registry-url 'https://payload-components.xyz/r/{name}.json' passed.
  3. Ducksss commented on Jun 15, 2026

    @Ducksss
    OwnerAuthor

    Closing as completed on the current dev baseline.

    Evidence:

    • pnpm test:registry runs tools/payload-kit/check-public-registry.ts.
    • The checker rebuilds payload-kits/registry.json into a temp registry, fails if root registry.json embeds file content, fails if item JSON is missing, and fails if generated item content drifts from source files.
    • .github/workflows/registry-verification.yml runs pnpm test:release on PRs and pushes to dev/main, and test:release includes pnpm test:registry.
    • The public registry integration tests assert the current two-item registry shape for hero-basic and feature-grid-basic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions