Skip to content

FR-023 Phase 2 — Metadata dependencies: JVM/C# consumers and registry transports #9

Open

Description

@dmealing

Code-free versioned metadata artifact via npm/Maven/PyPI/NuGet + metadataDependencies; loader source composition. Doc-first quick wins available now.

Spec / design: https://github.com/metaobjectsdev/metaobjects/blob/main/docs/superpowers/specs/2026-06-11-fr-023-metadata-packages-design.md
Target release: 1.x (later)

Status and target release live on this issue (milestone). Process: docs/ROADMAP-PROCESS.md.

Activity

  1. added this to the 1.x (later) milestone on Jun 13, 2026
  2. added
    FR
    area:tooling
    on Jun 13, 2026
  3. dmealing commented on Aug 18, 2026

    @dmealing
    MemberAuthor

    Re-scoped, not superseded. A design pass on metadata source resolution (docs/superpowers/specs/2026-08-17-metadata-source-resolution-design.md, with prior-art research alongside it) concluded that metadataDependencies as specified here is the third need, not the first — and that building it first leaves the blocked adopters exactly as blocked.

    The reframing: polyglot multi-app repos hitting this today do not need to compose several collections. They already have exactly one authored model. What they cannot do is reach it (point a consumer at a tree elsewhere in the repo) and scope it (take the part this consumer needs). Package-manager resolution is a third resolver contributing members to the same source set.

    Three findings from that pass that change this issue's shape:

    1. Sources are a set, not an ordered list. Super-resolution is order-independent (Metadata resolution is load-order-sensitive: dotted extends: Owner.member to an inherited member fails under Bun (listMetadataFiles doesn't sort files) #188), and MetaDataLoader._partitionOverlayLast already discards the caller's declared order. So this issue's "dependency sources first (in declared order), local last" rule should become a precedence rule attached to a source kind (a local source wins over a dependency; two dependencies conflicting is an error) rather than a total order. That deletes topological sorting, cycle detection, and the diamond-dependency problem.

    2. Per-ecosystem resolution is mechanically viable — spiked, not assumed. A code-free .nupkg carrying a metadata tree was packed and consumed from a PackageReference project. contentFiles is the wrong mechanism and copies nothing useful; a build/*.targets file exposes an MSBuild property; and — the part that matters — obj/project.assets.json carries the package folder, the library path, and a complete file listing, so a plain non-MSBuild CLI resolves the tree by joining two strings and reading JSON. Warts: packing a code-free package emits NU5128 (suppressible), and resolution requires a prior restore.

    3. The distribution channel deserves an ADR rather than a default. No surveyed peer publishes one code-free schema artifact to four language registries: CUE explicitly rejected that for OCI on polyglot grounds, Buf built its own registry, Smithy stayed single-ecosystem. Counterweight found later and worth recording here: enterprises already run internal mirrors of npm/Maven/PyPI/NuGet, so riding those needs no new infrastructure or supply-chain policy, whereas OCI usually does. That is an argument about the consumer's infrastructure, and it cuts toward this issue's original plan.

    Also note the polyglot constraint this issue does not currently state: a classpath resource: source is unreachable to the Node CLI and an npm package is unreachable to Maven, so a shared model consumed across repos by a polyglot consumer set must be published to every ecosystem that consumes it, or to one neutral channel. "Publish to one and let others cope" is not available.

    Deferred capabilities that surround this issue are now filed separately: #299 (access control), #300 (breaking-change detection), #301 (dependency override), #306 (meta why provenance).

  4. dmealing commented on Oct 2, 2026

    @dmealing
    MemberAuthor

    Status check 2026-10-02: Phase 1a (TS + Python consumers: meta deps, shared-model files, dependency-conformance corpus) shipped around 1.0.3. Remaining is Phase 2: Java/Kotlin/C# consumers, npm/PyPI/Maven/NuGet transports, and packageBindings. Milestone stays 1.x (later).

  5. changed the title [-]FR-023 — Metadata packages: cross-repo distribution + reuse[/-] [+]FR-023 Phase 2 — Metadata dependencies: JVM/C# consumers and registry transports[/+] on Oct 2, 2026
  6. dmealing commented on Oct 2, 2026

    @dmealing
    MemberAuthor

    Triage 2026-10-02: stays 1.x (later). Phase 1 (TS + Python consumers over path sources) covers every adopter today. Re-entry trigger: an adopter that shares a model across repos in a JVM or C# stack.

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

    FRarea:tooling

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions