Files
Holocron/scripts
Defame1297andClaude Opus 5.5 03bacd6e5a fix(scripts): gate --apply on main's first-parent line and reject later-landing tags
Why: a commit of an already-merged feature branch is an ancestor of
origin/main, so the ancestor check let --apply walk that branch's
first-parent history and tag a feature commit (git-v1.3.9 on 025ad4a).
A valid annotated tag on a later run of a recurring version was also
accepted as the start point, hiding the versions between its first
landing and that run.

Implementation Notes:
- --apply now requires the ref on origin/main's first-parent list;
  otherwise exit 2 and no tags.
- A tag must peel to the FIRST run of its version; one on a later run
  is an ERROR row and never the start point.
- apm.yml pathspecs use :(literal), so a plugin name is never a glob.
- Repeated --plugin values are de-duplicated (bash 3.2-safe).
- The printed push hint says the push runs only on the maintainer's
  explicit yes to that exact line.

Impact: tests cover all but the literal pathspec, which has no
observable effect on run grouping today and is defensive.

Refs: #223
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-27 18:34:20 +00:00
..