Skip to content

Fix release ancestry checks and re-cut stale untagged bumps - #1824

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-1820
Nov 6, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-1820

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes #1820.

git rev-list ... ^previous also returns concurrent main commits that do not descend from the release tag. Check ancestry before considering CI, and replace stale saved Candidates or untagged bumps when a newer release boundary makes their base invalid.

select base -> require last release tag as ancestor -> require green push CI
resume pin -> recheck ancestry and requested version
resume untagged branch/open PR -> validate bump -> select new base
  -> Experiment -> summary/review -> force-push branch -> update/open PR -> checks

Tagged and merged releases retain their resume behavior. The manual and all three hand-written site pages describe the new selection and re-cut behavior.

Evidence

Execution evidence

Test seam: the scripts/release.sh CLI, using real local Git history and the existing fake GitHub/Harness adapters.

  • Before: cargo test --test release ancestry::a_release_waits_for_green_main_descending_from_the_previous_bump_tag -- --exact --nocapture
    Failed with assertion left == right failed: selected main content predating the previous release merge, selecting the concurrent green commit while the release merge was still pending. The output also reported Pull request is not mergeable: the merge commit cannot be cleanly created.
    After: the same command passed: 1 passed; 0 failed.
  • Stale-pin and untagged-branch regression commands also failed on their respective old paths before the fixes and passed afterwards. Coverage includes a pushed branch with and without an open PR, checks on the new head, version refusal, and declining --review without changing the branch or PR body.
  • Standards finding check: ! rg -n 'It selects the newest main commit whose latest push CI passed' site/index.html exited 1 before the homepage correction and 0 after it.
  • npm test --prefix site: 62 passed, including regenerated-manual checks and mobile layout. cargo fmt --check and bash -n scripts/release.sh: passed. scripts/affected-tests main: passed. Its full Rust suite (cargo test; nextest unavailable) passed in 2524.52 seconds, including compilation (3m35s). The release target passed all 106 tests, with 2 fixture entry points ignored. Release-generator tests passed in 0.82 seconds. GitHub CI also passed for 25129b77.

Visual evidence

Each pair shows the release documentation at the same viewport and scroll state. Captures are hosted in a secret Gist; repository branches contain no evidence media.

Manual: 1440×900, release section

Before

After

Manual: 390×844, release section

Before

After

Architecture: 1440×900, release section

Before

After

Architecture: 390×844, release section

Before

After

How it works: 1440×900, release section

Before

After

How it works: 390×844, release section

Before

After

Homepage: 1440×900, release section

Before

After

Homepage: 390×844, release section

Before

After

Review

Independent Standards and Spec reviews used main as the fixed point. Standards: 1 finding, addressed (homepage release guidance). Spec: 0 findings. Both reviewers inspected all eight changed files, including generated manual changes. No changed file was left unread and no generated output was excluded. Reports and the finding-count summary are retained with the Session trace.

Unaddressed findings

  • Standards: None.
  • Spec: None.
  • Security: None.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

The script and documentation changes can be reverted. Re-cuts force-push only an untagged release branch after validation and summary review; published release protection remains in place.

Blast Radius: releases

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit 5cb7216 into main Nov 6, 2026
16 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1820 branch November 6, 2026 14:35
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 6, 2026
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.

release.sh: require the release base to descend from the last release tag and recut untagged bumps that predate it

1 participant