Skip to content

Document generic extension and artifact authoring rules #712

Closed

Description

@jimhoyd

Gap

docs/EXTENSIONS.md documents the extension API, add-on packaging, artifacts' inert-file constraints, and the requires/contributes mechanisms. It does not give extension or artifact authors an explicit, normative genericity rule or a review checklist.

The resulting gaps are visible in #709 through #711: a sibling's private YAML shape was consumed directly, core acquired an auth-specific convenience surface, and installation scaffolds gained application examples as live routes.

Proposed documentation

Add a concise Generic add-on authoring rules section to docs/EXTENSIONS.md, linked from CONTRIBUTING.md and the generated extension template. It should require:

  1. An extension owns only its declared configuration, mounts, policies, and exported/contributed contract; it must not read or depend on another extension's private YAML/configuration layout.
  2. Cross-extension dependencies are explicit through requires, typed/versioned exports via ctx.get, or typed/versioned contributions via ctx.contributions; core remains unaware of first-party names and policy vocabulary.
  3. Scaffolds add only integration prerequisites by default. Runnable application examples are opt-in and live as named examples/recipes.
  4. Artifacts remain inert and must contain reusable schemas, examples, or documentation—not executable code, provider wiring, credentials, customer data, or application-specific configuration.
  5. Every new seam gets a second-provider or consumer fixture, plus descriptor/build/add-on verification.

Include a short author checklist and link it from npm run create-extension output/README template.

Activity

  1. added
    documentation
    extension
    on Sep 25, 2026
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

    documentationextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions