Skip to content

Carry publication runs pre-push validation in the wrong checkout #578

Closed

Description

@lastobelus

Ordinary carry bootstrap and carry revision publication can run the pre-push hook in a different checkout from the candidate named by the publication guard.

With --push-tags --no-smoke, the guard compares the candidate to the automation worktree HEAD, while git push runs from the source checkout. The pre-push hook therefore observes the source HEAD instead of the candidate it is meant to validate.

Focused existing Git fixtures reproduce both paths by recording the hook HEAD and comparing it with the retained candidate. Both fail on the current implementation because the identities differ.

Run the tag push from the corresponding candidate checkout so the hook and guard refer to the same commit. Preserve hook rejection, retained recovery, immutable tag/source refs, and the existing full-validation and promotion safeguards.

Related modernization work: #577. This finding came from a review-policy evaluation; it is an additional defect outside that evaluation's frozen scoring denominator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions