Skip to content

PK-25 Lock manifest schema v1 and authoring contract #22

Closed

Description

@Ducksss

Summary

Finalize the public v1 manifest contract so new kit authors and agents can add kits without reverse-engineering implementation details.

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

Kit authoring

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

  • Review current manifest JSON schema, TypeScript types, loader validation, and template docs.
  • Lock required v1 fields for public kits: metadata, compatibility, dependencies, files, Payload fragments, post-install tasks, preview metadata, and sample content.
  • Improve validation errors so authors know the exact invalid or missing field.
  • Update the alpha kit template and docs to reflect the locked v1 contract.

Out Of Scope

  • Private entitlement fields except as an optional future-facing field if already supported safely.
  • Marketplace/user-generated kit publishing.
  • Changing existing public slugs for cosmetic consistency.

Implementation Guidance

  • Prefer strict, boring validation over permissive inference.
  • Keep the contract narrow enough for the current Payload v3 + Next.js App Router support target.
  • Ensure every existing public manifest validates without one-off exceptions.

Acceptance Criteria

  • All current public kit manifests validate against the v1 schema.
  • A new kit can be authored from the template without adding schema fields.
  • Invalid manifests fail with actionable messages naming the invalid field.
  • Docs explain naming conventions, required sections, and compatibility fields.

Test Plan

  • Valid manifest tests for all public kits.
  • Missing required section tests.
  • Malformed dependency map tests.
  • Malformed Payload fragment tests.
  • Template manifest validation test.

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
    documentation
    enhancement
    on May 13, 2026
  2. Ducksss commented on Jun 12, 2026

    @Ducksss
    OwnerAuthor

    PR #57 documents the Manifest v1 contract in the Fumadocs registry page and keeps strict manifest validation covered by tests.

    The documented v1 contract covers identity, compatibility, dependencies, files, Payload fragments, recovery, post-install tasks, preview metadata, and sample content. Validation errors continue to name the invalid field path.

  3. Ducksss commented on Jun 15, 2026

    @Ducksss
    OwnerAuthor

    Closing as completed for the current manifest v1 contract.

    Evidence on dev:

    • payload-kits/schema/poc-manifest.schema.json defines the strict manifest shape.
    • payload-kits/README.md documents the current contract and alpha-kit authoring conventions.
    • content/docs/registry.mdx documents registry/manifests/support-matrix/recovery state for users.
    • tests/int/payload-kit-manifest.int.spec.ts covers missing required fields, malformed fragments, invalid dependency ranges, unknown registry items, and unsupported target/version checks.
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

    documentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions