Skip to content

fix(checkpoints): run carry tag pre-push hooks in the candidate checkout - #580

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/checkpoint-publication-checkout
Nov 2, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/checkpoint-publication-checkout

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Problem

Carry bootstrap and ordinary carry revision pushes ran git push from the source checkout, while the publication guard identified the candidate checkout. The pre-push hook therefore saw the source checkout's HEAD, not the candidate being published. With smoke validation disabled, the hook could check a different commit from the one the guard approved.

Fix

Both tag pushes now run from the candidate checkout, so the hook's HEAD matches the guarded candidate. The source change is a two-line working-directory fix (2 files, +32/−3 including tests). No validation or promotion safeguard is weakened: full validation, tag identity checks and promotion safeguards are unchanged.

Validation

All test evidence comes from real-Git fixtures, not production publication.

  • Regression coverage: extended the existing real-Git fixtures to record the hook's HEAD for bootstrap and revision publication. Each fails before its fix, with the recorded hook HEAD different from the retained candidate.
  • After the fix: 86 tests pass.
  • check:changed: passed — format, lint, both knip passes, scripts typecheck and the 86 tests.
  • Managed Quick CI: passed on this exact head (a7242c710d) and base (95f5d27cb9).
  • GitHub: CI passed and Codex completed a clean review on this exact head; the final guarded merge check will verify the current state.
  • Not done: no independent local review; the optional review wasn't launched.

Fixes #578. Related to #577.

Model: GPT-6.1 Sol. Harness: Codex.

Keep pre-push validation aligned with the candidate used by the publication guard for carry bootstrap and carry revisions. Extend existing Git fixtures to record and verify the actual hook HEAD on both paths.

Fixes #578

Carry-Group: build-ci
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T19:26:25.324993Z a7242c7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lastobelus lastobelus changed the title fix(checkpoints): run carry tag hooks in the candidate checkout fix(checkpoints): run carry tag pre-push hooks in the candidate checkout Nov 2, 2026
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a7242c710d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus merged commit af9a00e into lastcode/main Nov 2, 2026
37 checks passed
@lastobelus
lastobelus deleted the lastcode/checkpoint-publication-checkout branch November 2, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Carry publication runs pre-push validation in the wrong checkout

1 participant