0258. Local registry render yank journal replay
- Status: Proposed (RG4.1b implementation default; question for maintainer)
- Date: 2026-11-16
- Plan: M15.5; RG4.1b
- Builds on: 0255
- Review: Data, schemas and wire formats
Context
The accepted hosted registry plan ยง3.4 specifies
<version> yank|unyank <actor> <time>
journal entries, and RG4.1b allows an optional journal file, but
leaves its CLI option and replay details open.
Decision
Use --yank-journal <file> before the
destination directory. Records contain four nonempty,
space-separated fields and end in LF; versions are semver core and
the action is yank or unyank. Actor and
time are opaque tokens, not authenticated claims. The last action
for each version wins. Reject malformed records (E1069) and
unknown versions (E1072). No journal preserves existing flags; an
empty journal has no actions. Replaying unchanged flags does not
rewrite the index.
The renderer reads an explicit hvc store and requires an
existing destination directory, like registry build.
It ignores nonrelease local tags. It checks tag/manifest version
agreement (E1071) but does not implement release admission,
protected-history checks, host quotas or authorization (later
steps).
Alternatives considered
- Implicit journal location: hides another input and couples this local tool to the future host's durable-state layout.
- Complete yank-state snapshot: simpler parsing, but differs from the accepted append-only journal and loses the actor/time record shape.
Consequences
Cache rebuilds can replay a supplied journal without changing package hashes. Maintainer should confirm the flag name and last-action-wins replay default before the hosted journal writer is implemented in RG4.1g.