Why: the untagged-run branch looked for an earlier run of a version only
from the start of the wanted range, while tag validation used the first
landing across all history. After a backfill, a revert to a pre-backfill
version was tagged on the revert commit, and the next dry run reported
that tag as a later landing: exit 2, blocking --apply for every plugin.
Implementation Notes:
- first_run() returns the first valid run of a version over the whole
first-parent history; tag validation, the tagged-elsewhere check, the
backfill start and the untagged-run check all use it.
- An untagged version whose first landing lies before the wanted range
reports RELEASED with a "before the tagged range; not tagged" note; no
tag is created and the exit code is unaffected.
- Preflight rejects a plugin name whose tag git check-ref-format refuses
(e.g. a..b, a*) before any history is read, so a glob character never
reaches a pathspec or ref pattern; tags are listed once and filtered by
exact prefix instead of a for-each-ref glob.
- git rev-list failure and an empty run list now exit 2 with a FAIL
message instead of being read as no history or crashing.
- The error footer addresses agents (stop and report, AGENTS.md) and the
maintainer (fix by hand, ADR-0033) separately.
Impact: ADR-0033 defines first landing precisely, documents the preflight,
and documents the maintainer escape from an INVALID run (hand-cut tag on
the next valid version; --apply stays all-or-nothing). New tests cover the
revert repro, a backfill range holding a pre-range version, the INVALID
escape, rev-list failure/empty history, a glob plugin name, and the footer.
Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi