App repositories
An App repository (or source/store) is a catalog of available App packages and the release metadata needed to install and update them. It distributes the .wasmapp artifacts described in App package.
Repository model
- The project operates one primary App repository, included as the default source for every Instance.
- The project maintains this repository: it controls its signing keys and publication process, and is responsible for its availability and catalog metadata.
- An Instance admin may add other repositories. Each source has its own identity and trust configuration; adding a source does not change where an existing install receives updates.
- Instances install from configured repositories. The install approval and source-pinning behavior is described on App lifecycle.
The project repository is the default starting point, not the only source an Instance may use. Package identity remains separate from source identity and from the opaque per-Instance install id. The policy for duplicate package ids across different sources is still open; the UI and Host must keep the source visible and must not silently switch an install to a different source.
Two interfaces
There are two separate interfaces in the distribution flow:
- Admin ↔ Instance: The Instance’s admin UI is a client of the Host’s install-management API. Through it, the admin adds and manages repository sources, browses their catalogs, selects a source and package, reviews requested capabilities, approves installs and updates, and checks for updates. The Host owns install ids, source bindings, policy enforcement, and update execution. This is the admin-facing interface described by the install UI/API decision. See App lifecycle for that behavior.
- Instance ↔ repository: The Host is a repository client. It uses each configured repository’s API to retrieve its catalog/index and release metadata, then downloads the selected package artifact. The repository provides discoverable release metadata and artifacts; it does not directly install code on an Instance or approve an update for the admin.
These interfaces have different trust boundaries and should not be conflated. The Host’s admin API is local to the Instance’s control plane; repository endpoints are remote supply-chain inputs and must be authenticated and verified. Exact endpoint shapes, authentication, pagination, caching, and error behavior remain to be specified. The developer-facing publication process for submitting releases to the project repository is a third concern and is not the Instance’s repository client API.
Repository and release metadata
A repository needs a catalog/index that lets the Host discover packages and releases without downloading every archive. Each release entry should bind at least the package id, version, archive digest, and signing identity. The Host verifies repository metadata and the package signature/digest before accepting or running an artifact.
The exact index format, signature envelope, key rotation and revocation, mirrors, retention, and publication API remain to be specified. Package archive signatures and repository/index signatures may be separate layers; their relationship must be explicit so that a trusted repository cannot accidentally mask a tampered artifact or an artifact be replayed as a different release.
Project repository responsibilities
The primary repository should provide the trusted first-run catalog and a clear publication path for App developers. The project must define catalog inclusion/review criteria, response to compromised or withdrawn releases, and maintainer handoff. It’s open what the conditions and process to add a package is in the default repository.