Skip to content

RELEASING.md promotion steps describe a fast-forward that main cannot take - #9783

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25202-56bd0a89
Nov 16, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25202-56bd0a89

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-25202 — RELEASING.md promotion steps describe a fast-forward that main cannot take

Description

Observed (2026-11-16)

RELEASING.md steps 10b and 10c, and docs/runbooks/release.md step 8, say a release ends by fast-forwarding main to the tagged commit with a direct push, and that git merge-base --is-ancestor origin/main origin/agent-main then prints in-sync.

Neither holds today:

An agent following the doc for the next release stops at step 10b with no documented way forward.

End state

RELEASING.md and the release runbook describe the promotion as it is done: a promotion PR from agent-main into main, merged by Daniel with a merge commit. They say which commit is promoted (the tagged commit, or the tip at promotion time as v0.50.0 did) and why, and what the post-promotion check is now that main always carries merge commits agent-main lacks (for example, that main's tree equals the promoted commit). The hotfix section agrees with it.

If Daniel would rather restore the fast-forward flow, that is a ruleset and history change of his, not this task; raise it as a decision instead of editing the docs toward it.

Behaviour change: docs only.

Acceptance Criteria

  • RELEASING.md steps 10b and 10c give commands that succeed against the current main ruleset and history, and name which commit is promoted.
  • The post-promotion check in RELEASING.md passes on today's origin/main and origin/agent-main.
  • docs/runbooks/release.md step 8 and the hotfix flow agree with the new steps, and no text still says a promotion never adds a merge commit.

Execution Summary

Click to expand

ORB-25202 execution summary (docs and promotion-guard test only; no Rust changed; changes left uncommitted)

Acceptance criteria

  1. Steps 10b and 10c give commands that succeed on current history and name the promoted commit: MET.
    • 10b is now a gate that pushes one branch, promote/vX.Y.Z, at the tagged commit. The gate requires the release commit to be on agent-main and requires that merging origin/main into the release gives exactly the release's tree. A release operator then merges the PR with "Create a merge commit".
    • 10c checks that origin/main^2 (the PR head) is on agent-main and that origin/main's tree equals it.
    • Earlier this session, the 10c block was run verbatim against a fresh clone of the remote: exit 0, printed "promoted da9501e". Not re-run in the final pass.
    • Not verified: branch rulesets. gh is not authenticated here, so the promote/* push and the merge-commit PR rest on the task's ruleset description and on main already carrying merge commits (PR chore: promote agent-main to main #9643, main at 71c8dce).
  2. The post-promotion check passes on today's origin/main and origin/agent-main: MET (same live run as above; promoted commit da9501e is on agent-main and main's tree equals it). Remote refs confirmed in the final pass: main 71c8dce, agent-main e4e6ef1.
  3. Runbook step 8 and the hotfix flow agree with the new steps; no text says a promotion never adds a merge commit: MET. grep for fast-forward and merge-commit wording finds only the intended text. Hotfix: branch from origin/main after a fetch; version bump and CHANGELOG land on main through a PR; then tag the merged commit. Back-port: git merge --squash origin/main on a branch cut from agent-main, merged by an ordinary PR with no bypass.
    • Extra fix in the final pass: docs/runbooks/release.md step 7 said "Tag the merge commit", which contradicts agent-main taking no merge commits. It now reads "Tag the release commit on agent-main", matching RELEASING.md §9.

Choices (where the task text was open or differed from what I verified)

  • Promote the tagged commit, not the agent-main tip. This keeps the policy that unvalidated later development waits for the next release. v0.50.0 is documented as the tip-promotion exception.
  • The gate uses git merge-tree --write-tree, which needs Git 2.38 or later. The guard job runs on ubuntu-latest, which qualifies.
  • A hotfix followed by the next release: both bump the version files and CHANGELOG. If they change the same lines, the gate reports a conflict and refuses. RELEASING.md says to stop and raise it, because resolving it changes which commit gets promoted.
  • scripts/test-release-promotion.py rewritten. It runs as part of the CI guards and executes the 10b and hotfix blocks from RELEASING.md against fixture repos, so the old version would fail against the new docs. It has 9 tests: promotion pushes only the tagged commit; PR-merge simulation plus post-check; refusal on hotfix divergence; refusal when the release or tag is missing; post-check refusal; back-port fetch and landing; next promotion after back-port; the version-conflict stop. That path was outside the original selectors; Orbit widened them.
  • last_validated set to 2026-11-16 in RELEASING.md and docs/runbooks/release.md.

Corrections to the task text (checked against git)

  • The v0.50.0 tag (a9fecd6) to promoted tip da9501e is nine commits, not three.
  • 6fe5e57 is a single-parent squash commit (a cherry-pick of bb764a3, which is on agent-main), not a promotion merge. git cherry flags it despite identical content, so the gate does not use git cherry.

Validation (final pass unless noted)

  • python3 scripts/test-release-promotion.py: 9 tests, OK. Passed.
  • make ci-guards: exit 0. Passed. Phase lines in .orbit/tmp/ci-guards.log show exit=0.
  • scripts/generate-doc-indexes.sh --check: exit 0. Passed.
  • git diff --check: clean. Passed.
  • Not run: cargo build/test, cargo clippy, rustfmt (no Rust changed); make ci (not required for a docs-only diff per AGENTS.md).
  • Sandbox limits: the shared .git is read-only, so git fetch could not update local refs. Remote truth came from git ls-remote and from a fresh clone. merge-tree simulations wrote objects to scratch object dirs under .orbit/tmp.

Reconciliation

  • Changed: RELEASING.md, docs/runbooks/release.md, scripts/test-release-promotion.py. git status --short shows exactly these three; no untracked paths. Base HEAD 520067f (matches the envelope base_sha).
  • context_files (RELEASING.md, docs/runbooks/release.md) were not edited as selectors.
  • No CHANGELOG.md change. No commit made.
  • Scratch under .orbit/tmp (ignored): ci-guards.log, execution-summary.txt, task-recheck.json. The tests remove their own temp dirs.

Decisions for Daniel (not decided in the docs)

  1. Confirm promoting the tagged commit through promote/vX.Y.Z and a merge-commit PR, versus the v0.50.0 tip-promotion precedent.
  2. Choose how to resolve a hotfix followed by a version/CHANGELOG conflict. Options: a -s ours merge on the promote branch after the back-port is verified, or changing how the version bump is recorded.
  3. Verify the rulesets with gh (not possible from this environment): main allows merge commits (no required_linear_history); the repository allows "Create a merge commit"; creating promote/* and backport/* branches is not blocked.
  4. Restoring fast-forward promotion needs a ruleset and history change by an admin. Not pursued here.

Flagged, not changed

  • RELEASING.md line 293: "If agent-main goes missing from origin, an admin restores it with git push origin origin/main:refs/heads/agent-main." That assumed main is a subset of agent-main, which is no longer true. Needs a follow-up edit.

Validation

  • Not reported

Branch Freshness

  • Base ref: refs/remotes/origin/agent-main
  • Head ref: orbit/ORB-25202-56bd0a89
  • Behind base: 0
  • Ahead of base: 1

RELEASING.md promotion steps describe a fast-forward that main cannot take

ORB-25202 execution summary (docs and promotion-guard test only; no Rust changed; changes left uncommitted)

Orbit-Task: ORB-25202
@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Nov 16, 2026
@orbit-agent-01
orbit-agent-01 merged commit b317862 into agent-main Nov 16, 2026
19 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-25202-56bd0a89 branch November 16, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant