Repository navigation
Open
Labels
enhancementNew feature or request
Description
Context
Parent design: #235. The maintainer wants a separate, open-source template registry with a standard format, frontend and backend packages, add/import/export, and search/sync/download of the latest versions. uvp provides the client and the standard; it does not host the registry.
Scope
- Define the registry contract on top of F's package format: an index with package metadata, versions, checksums, licences, and provenance; immutable versions; no executable content at search time.
- Add a registry client to uvp:
- search by category/framework/style/tags/features and free text; return multiple matches with metadata for an external AI to choose;
- download and verify (checksum; signature if the registry provides one) into the local store;
- sync/update with explicit version pinning and an offline cache;
- never auto-upload a local package;
- network requests are a declared effect and are never made by
uvp build/uvp run.
- The registry URL is configurable; the first-party registry is a separate open-source repository created by the maintainer. This issue covers only the uvp client and the contract; the registry repository and its moderation/review process are a separate deliverable.
- Offline behaviour: the local store and search still work; sync reports
undetermined, not "no updates", when the registry cannot be reached. - Licence/provenance are part of every result; a package without a licence is not offered for shared use.
Acceptance criteria
- A local fixture registry (tests) supports search, download, checksum verification, pinning, and offline fallback; tests cover a corrupted checksum and an unreachable registry (reported as unknown, not empty).
- The client returns multiple matches with the metadata an AI needs; no model call is made by uvp.
- A local package is never uploaded implicitly; any upload would be a separate, explicitly authorized operation.
npm run docs:checkand the MCP boundary test pass.
Dependencies
Depends on F (package format/local store). The separate registry repository is a maintainer deliverable; without it, this issue can be developed against a fixture registry.
References
- [Design] Frontend template layer: static skins, optional Node frameworks, AI selection, and local extension #235 — the ecosystem decision and the separate open-source registry.
AGENTS.md— network effects, evidence, no credentials by default.docs/tool-design.md— search/selection results must be useful to the caller.
Owner
Unassigned; depends on F. One active task per engineer.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
Antruly commentedon Oct 18, 2026
Official registry repository
The separate, open-source registry now exists: https://github.com/Antruly/uvp-templates (public, MIT).
It holds the data and the review process. uvp remains the owner of the package format; if the two disagree, uvp wins.
packages/<id>/<version>/withuvp.template/1,README.md,LICENSE, andfiles/.index.json(no timestamps, no model calls), raw URL:https://raw.githubusercontent.com/Antruly/uvp-templates/main/index.jsonvalidate): registry tests, index determinism, provisional preflight (paths, limits, digests, licence/provenance), a bounded secret/PII scan, and the PR disclosure policy.uvp-agentsand runs validate → import → init → build. It is gated by the repository variableUVP_RUNTIME=1and theruntime-checklabel, because the submitted C++ is compiled and run on an ephemeral runner.validatecheck.Observed 2026-10-18: the latest published
uvp-agentsis 0.2.0 and has nouvp templatecommand (invalid_request: No command named "template"), so the runtime lane reportsundeterminedrather than passing. Its forward command shape is documented in the registry'sdocs/runtime-ci.md; when a release exposes it, the lane is enabled and added as a required check.No packages are published yet. A structural pass is not a build claim.
The client work remains in this issue: search, sync, download, cache, and provenance on top of this index and package format.
Assisted-by: Claude Code (direction-lead)
Antruly commentedon Oct 18, 2026
🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1
Claiming this task as Antruly-dev-1. I will follow
docs/ai-engineer-operations.md and docs/agent-workflow.md.
Planned scope — first increment, library only. The registry's own
docs/index-format.mdand theuvp.template/1vocabulary already fix the datacontract, so this increment can be built without a further design decision:
src/domain/templateRegistry.ts— a closed-shape reader for the untrusteduvp.registry/1index. It validates schema, ids, versions, categories,frameworks, tags,
requires, licence, provenance, and thefiles[]digest/byte list, reusing the existing package vocabulary rather than
re-spelling it. Malformed entries are named, never silently dropped.
src/application/TemplateRegistry.ts— fetch the index over an injectabletransport with a bounded body and a timeout; cache the last good copy under
the local store root; and return three states — network read, stale cache
(with the fetch failure named), and
undeterminedwhen neither is available.An unreachable registry is never reported as an empty registry.
tags, features) returning multiple candidates with their provenance, reusing
the local search's matching rules rather than a second implementation.
Not in this increment: download into the store, checksum-verified sync and
pinning, and any CLI/MCP tool contract or
effectschange. Those follow asseparate PRs on this issue, so this PR adds no user-facing surface.
Checks planned: focused vitest against a local fixture HTTP server (no real
network in tests), then
npm run check:prwith the real libuvcpp 1.7.0 root.Antruly commentedon Oct 18, 2026
🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1
First increment merged: #257 →
a8791a4(head285140a, owner approval at that head). It lands the read side only:src/domain/templateRegistry.ts(closed-shapeuvp.registry/1reader, including the entries the registry's generator actually emits),src/application/TemplateRegistry.ts(network read, URL-keyed last-good cache, three reported states, deterministic search), and the sharedtemplateDiscovery.tsfilters. The fixturetests/support/fixtures/registry-index.generated.jsonis produced byAntruly/uvp-templates's own builder ata95b3e0, with a regeneration script.Main CI on
a8791a4: CI run 39132288331, 12 jobs success, 2 skipped (Real libuvcpp and Windows MSVC by change classification — not coverage).Still open in this issue: download + checksum verification of a package, sync/pinning, and the CLI/MCP surface. The download increment needs the package fetch URL/layout decided (the index names
packages/<id>/<version>inside the registry repository, but no archive/endpoint contract is documented yet), so I am not starting it fail-closed.Antruly commentedon Oct 18, 2026
🤖 Antruly-dev-1 · AI Engineer 1 · agent:dev-ai-1
Design question for the next increment (download + checksum). The registry documents
packages/<id>/<version>/as immutable and the index carries a manifest digest plusfiles[].digest/bytes, but it documents no way for a client to fetch a package. I do not want to infer one, so here are the three shapes I can see; say which (or none) and I will file the increment.files[]path plustemplate.jsonfromraw.githubusercontent.com/Antruly/uvp-templates/<ref>/packages/<id>/<version>/…, verify everysha256/byte count, and verify the manifest's canonical digest. Works today; costs one request per file (the package format allows up to 512) and needs a pinnedrefto make "immutable" enforceable rather than a policy — the index currently carries no commit.packages/<id>/<version>/with the existing path checks, then verify the same digests. Cheap in requests, but still has no commit in the index and downloads more than the package. GitHub's archive endpoint has no subdirectory form.packages/<id>/<version>.tgzwith a published digest and the index names it. Cleanest client contract and one request, but it is new work inuvp-templates(and its CI) before the client can use it.My recommendation: 3 as the target contract, with the index gaining a
ref/commitfield either way so "immutable path" can be verified; 1 is the stopgap if you want the client usable before the registry publishes archives. If you pick 1, the increment should state plainly that immutability is the registry's policy, not something the client can prove.Antruly commentedon Nov 25, 2026
Decision (2026-11-25): option 3. The registry publishes one tarball per package version with a published digest, and the index names it. Option 1 is not the stopgap.
Contract:
archives/<id>/<version>.tgz, deterministic (sorted paths, fixed mode/mtime, package contents at the root).index.jsonversion entry gainsarchive: { path, digest, bytes }; digest issha256:over the.tgz.files[]digest. Offline cache andundeterminedon unreachable registry remain in scope.Sequencing is forced by the closed index reader:
[email protected]rejects an unknown version-entry key, so the client must acceptarchiveand ship first. Both halves are now tracked:npm publishing is currently blocked on Trusted Publisher configuration (
publish.ymlrun 45655925350 failed withENEEDAUTH), so the client half is gated on that release step, not on design.