Skip to content

Extension packs: ship a provider and its generators as one opt-in package #570

Open

Description

@dmealing

Providers let an adopter add vocabulary, and owned generators let them emit anything from it. Both work well inside one repository. There is no supported way to publish the pair for a second repository to use, and no place between "private to one adopter" and "core vocabulary in all five ports".

That gap decides where real additions end up. A downstream operations application has built a provider and a set of generators for audited writes, database policy and tool definitions. A second application by the same team needs the same pieces. Today the choices are to copy the files or to propose core vocabulary, which needs a conformance fixture in every port and, by the project's own rule, a second independent consumer. Neither fits something that is TypeScript-only, useful to more than one adopter and not yet settled enough for core.

An extension pack would be an ordinary npm package that exports one provider and the generators that read its vocabulary. It would be opt-in, listed in the adopter's config, and outside the sealed core registry. It gives the register, converge, promote lifecycle a concrete middle step: a concept lives in a pack while evidence gathers and moves to core when it has earned it.

  • Document the package shape: one exported provider, generators, and a manifest naming the vocabulary it adds
  • meta gen --list shows a pack's generators with the pack as their origin
  • meta types shows a pack's vocabulary marked with its origin
  • Agent context and meta export include pack vocabulary (relates to Agent guidance: never hand-parse metadata YAML; document meta export as the query path (and make it work with adopter providers) #478)
  • Two packs declaring the same attribute are refused with a clear error
  • A documented path for promoting a pack concept to core, including how adopters' metadata is renamed
  • Decide whether the project itself publishes packs, and under what stability label
  • Export or document an "effective package" accessor for generators. While prototyping, an entity whose package comes from its file's default reported no package and a bare qualified name, so a per-package generator wrote a file with an empty package in its name.
  • Consider a warning from meta gen for an undeclared attribute. Today only meta verify catches it.
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions