Skip to content

[Request]: Support independent provider packages and standard inert artifacts #844

Closed

Description

@jimhoyd

Problem or use case

#841 found that explicit external operator extensions are supported, but managed installation/discovery is tied to first-party package identities, release URLs and lockstep versions. Inert artifacts accept a narrow proprietary file layout. We need actual ecosystem interoperability, not a replacement private registry. Synthetic probes against main a996f0d confirmed catalog identity/URL refusal; see #841. Earlier #741 documented the manual path and does not implement this work.

Proposed behavior and alternatives

After the first upstream-provider proof determines the smallest needed contract, support an independently versioned scoped npm provider and its static documents as a packed consumer. Reuse npm resolution and package-lock integrity. Keep the official catalog as curated recommendations. Do not build another package manager or require a hosted catalog.

Separate package identity/version/integrity, URLCode contract version, logical provider/capability names, supported targets, operator activation/grants and discovery metadata. Use a small static descriptor or adapter sidecar beside standard package documents. Prefer existing urlcode.json machinery if it can be generalized; do not introduce per-extension YAML dialects.

Three explicit operations:

  1. Inspect pinned inert JSON/Markdown/YAML documents and local refs, including JSON Schema/OpenAPI. Reading cannot import a package, run a lifecycle script, fetch a remote reference, create a grant or treat document prose as trusted agent instructions.
  2. Stage source assets from an existing component/skill format as data with a complete file/dependency diff. Do not claim a shadcn registry or Agent Skill containing executable files satisfies the old inert-artifact contract. Materialization is a separate opt-in and may be deferred from the first PR.
  3. Activate operator-selected executable providers. A YAML behavior declaration does not install code or choose credentials/storage providers.

Acceptance:

  • A synthetic @example provider package outside the first-party namespace can be installed from a pinned local tarball, inspected offline without execution, registered, validated and removed; repeat with an actual upstream-backed adapter from the proof.
  • Test independently versioned packages, declared compatible/incompatible core contracts, stale descriptor/integrity, duplicate core instances, malicious paths/symlinks, reference cycles/limits, and package lifecycle scripts that must not run during inspection/install.
  • Inspect one standard OpenAPI YAML document with a local ref and one JSON Schema document without repackaging their contents into custom field syntax. Record media type, origin and digest.
  • Locked installation still works after core's curated catalog changes; runtime/catalog versions do not masquerade as external-package versions.
  • CLI and authoring MCP use the same project-installed discovery facts. Host imports remain explicitly identified as trusted execution.
  • No package publication, license change, automatic grant approval or live credential access is needed for conformance fixtures.

Delete first-party-only assumptions from general management when replaced; no backwards compatibility for old managed descriptors/CLI aliases is required. Preserve useful native npm lockfile behavior and failure cleanup. New-format bootstrap is required; old-site data migration is not.

Implementation areas: addon-manifest.ts, addon-install.ts, upgrade.ts, extensions-cli.ts, agent-context.ts, agents-guide.ts; docs/EXTENSIONS.md, artifact/agent references and packed-consumer tests. #834 owns exact runnable validation context. Scope source materialization only after inert external documents and provider packages pass; do not let a universal registry aggregator delay the first deliverable.

Primary references: https://github.com/npm/pacote ; https://ui.shadcn.com/docs/registry/registry-item-json ; https://agentskills.io/specification . Use npm directly where it already does the job; pacote is optional, not a mandated extra dependency.

Activity

  1. jimhoyd commented on Sep 28, 2026

    @jimhoyd
    CollaboratorAuthor

    Evidence from the #843 proof (PR: #848), for scoping this issue:

    • The adapter is a 92-line operator module inside the site (proofs/private-requests/operator/better-auth-extension.mjs), composed through composeHost like any extension. --host-file validation, test, audit, serve and explain all accept it.
    • Static urlcode validate --project app (no host) refuses it: extensions.better-auth: @jimhoyd/urlcode-better-auth is not installed ... run urlcode extensions add better-auth or npm ci. The static path assumes every declared extension is the first-party package @jimhoyd/urlcode-<name>, and its advice cannot work for an independent provider. This is the first-party identity assumption this issue describes, observed.
    • Useful static descriptor content for this adapter: logical name better-auth, targets [node], providesPrincipal, capabilities: [identity], config/policy schemas (both empty), and the served provider paths. The proof currently proves the last one only with an operator probe script (npm run inventory). explain/report now label mount subpaths "provider-defined, not enumerated or inspected by URLCode" rather than implying review.
    • Upstream footprint to record in a descriptor or review: [email protected] (MIT) installs 23 packages, ~32 MiB unpacked, including unused Mongo/Prisma/Drizzle adapters and @opentelemetry/semantic-conventions (12 MiB) as hard dependencies.
  2. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Delivered on main:

    A real upstream-backed independent provider (Auth.js, #886) installs from a tarball. Operator activation of executable providers stays explicit through host.mjs.

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