Skip to content

Reserve managed PR branches before coding starts - #88

Merged
alex-engvall merged 2 commits into
mainfrom
fix/reserve-publication-branch
Nov 27, 2026
Merged

alex-engvall merged 2 commits into
mainfrom
fix/reserve-publication-branch

Conversation

@alex-engvall

Copy link
Copy Markdown
Collaborator

Problem and outcome

GitHub can reject the creation of a delivery branch when its frozen workflow definitions differ from the current default branch. The managed workflow now creates its delivery branch at the verified checkout base before the first Codex turn. Publication advances that branch to the exact reported commit after the existing bundle, DCO and workflow checks.

Related work

W04 / LS-GH-6.

Verification

  • Node 24.22.0 passed all 22 self-build integration tests.
  • The new cases exercise a lost branch response, coordinator restart, a workflow update on the default branch and exactly one PR. A conflicting remote reference blocks the turn without sending another create.
  • Generated types, documentation, the rendered checklist and Python tests passed.

Compatibility and recovery

The branch reservation uses the existing GitHub App Contents write permission and durable managed-effect journal. After an uncertain response, only an exact ref at the frozen base is accepted as evidence. Existing turns and PRs follow their original publication path. The coordinator uses the existing schema.

Contribution checks

  • Specifications and requirement tracking match the change.
  • Tests cover publication and recovery.
  • The commit includes DCO sign-off.

@alex-engvall
alex-engvall merged commit cf43f50 into main Nov 27, 2026
1 check passed
@alex-engvall
alex-engvall deleted the fix/reserve-publication-branch branch November 27, 2026 07:51
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.

2 participants