On this page

0258. Local registry render yank journal replay

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

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.