0244. VCS host derives the registry index from tags
- Status: Accepted (maintainer, 2026-11-15); supersedes the registry-store part of 0206
- Date: 2026-11-15
- Plan: M15.5; RG4.1, RG4.2
- Review: Effects, durability and the agent runtime
Context
ADR-0206 proposed
per-repository VC stores plus a separate registry store on the
host, and the v1 hosting plan's H6 adds signed publication routes.
Maintainer wants the hosted VCS to act as a registry by building
its index from repo tags. VC remotes and hosting are planned, not
built (vc-remote plan,
hosting plan).
Decision
The host serves the static layout of 0238
for each repository, derived from its v<x.y.z>
tags: one index line per tag and one pack per tagged tree (0241),
generated by the same code as harness registry build.
There is no second registry store and no separate publish step:
publishing is pushing a tag once VC remotes exist. Release tags
are immutable on the host; yank is a host-recorded flag. Derived
index files and packs are a rebuildable cache of repo state.
The host appends every first-seen (path, version, hash) to an
append-only checksum log with a signed head. Clients check
non-private packages against it (0243
v2). Lock sources use index+https://… (0240).
0206's per-repository stores, isolation and backup decisions are unaffected. 0204, 0205 and 0207 are unchanged for the hosted service.
Alternatives considered
- Separate registry store and upload routes (0206, H6) — two sources of truth for the same code, and a publish API to secure.
- Git-backed index — conflicts with ADR-0160 on the host and with the static layout.
Consequences
Goal 3 is a rendering of existing data. The checksum log and yank flags are the only new durable registry state, and the log must be backed up with repos. Hosting H6 would need remapping by maintainer; this ADR does not edit the hosting plan.