Skip to content

feat(queue): cut the queue branch on the first worker PR - #222

Merged
TitusKirch merged 1 commit into
devfrom
feat/queue-branch-cut
Aug 4, 2026
Merged

feat(queue): cut the queue branch on the first worker PR#222
TitusKirch merged 1 commit into
devfrom
feat/queue-branch-cut

Conversation

@TitusKirch

Copy link
Copy Markdown
Owner

Closes the gap that made the queue-branch mechanism unable to complete.

queue-branch.yml (new)work.queueBranch only makes a drain aim at an open ai/queue-*; the loop holds no write to that branch by design, so with nothing cutting one the key was inert and every worker PR fell back to the integration branch. Fires on pull_request: [opened], cuts ai/queue-<sha7> from the integration tip on the App token, retargets the worker PR at it.

The App token is load-bearing: a ref created with GITHUB_TOKEN raises no push event, so fast-forward-queue.yml's open job would never fire.

See ADR-0012 in kirchDev/infrastructure.

fast-forward-queue.yml is also brought up to the ADR-0010 shape this repo never received: the App opens the queue PR itself and pick refuses to land anything without an approval on the current head. Manual dispatch stays as a fallback.

Two gaps, both of which left the queue-branch mechanism unable to complete.

`queue-branch.yml` is new. `work.queueBranch` only makes a drain AIM at an
open `ai/queue-*`; the loop holds no write to that branch by design, so with
nothing cutting one the key was inert and every worker PR fell back to
`pr.base` — the mode-off path. It fires on `pull_request: [opened]`, cuts
`ai/queue-<sha7>` from the integration tip on the App token (a ref created
with GITHUB_TOKEN raises no `push` event, so the `open` job below would never
fire), and retargets the worker PR at it.

`fast-forward-queue.yml` is brought up to ADR-0010, which this repo never
received: the App now opens the queue PR itself, so the maintainer is not its
author and can approve it, and `pick` refuses to land anything without an
approval on the current head from someone with write access. That replaces
manual dispatch as the human gate — dispatch stays as a fallback. Both ADRs
live in kirchDev/infrastructure.
@TitusKirch
TitusKirch merged commit f08f1ab into dev Aug 4, 2026
5 checks passed
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.

1 participant