When you ask a developer or an AI coding agent to build something, you still need to decide whether the result is ready.

That gets harder when several changes finish together. Imagine your login fix and payment feature both have passing tests before a customer demo. Can you combine them and trust that a customer can sign in and pay?

You do not need to read every line of code to understand that decision. You need to know what was checked, which changes were checked together, and what happens when they disagree.

Let’s follow those two changes through a GitHub merge queue.

Both changes passed. Can you combine them now?

The payment feature was tested with the login code that existed yesterday. Since then, the login fix has changed how the app recognizes a signed-in customer.

Payment might still work. But its earlier result cannot answer whether it works with that new login behavior. If the two changes disagree, your customer could sign in successfully and then get stopped at checkout.

Cimulink / The customer journey
Login changeSign inEarlier checks passed
→ ? →Checked together?
Payment featureComplete paymentEarlier checks passed
The customer needs the whole journey to work on the combined version.

Worktrees in part 2 gave tasks separate places to work. Now the question is what happens when those changes meet.

What happens when you request a merge?

Your team’s main code version is often called main. A pull request, or PR, proposes a change to it. Merging brings the proposed change into main. That does not necessarily deploy it to customers; deployment is a separate part of your release process.

With a merge queue configured, eligible PRs wait while GitHub checks temporary combinations before merging. Think of a temporary combination as a version assembled for assessment, not code already released.

GitHub merge queue for main with proposed changes listed in order and their queue status beside them.
The queued entries are waiting to join main. Their position matters because later candidates include changes ahead of them.

We’ll call the login change A and the payment feature B. Both have reached the queue. Neither becomes ready merely because it has a place in that list.

Does it include every piece of work in progress?

Suppose another task is building a chatbot. That work does not enter the payment check just because an agent is running or a pull request is open.

The relevant combination contains the current main code and the changes ahead of yours in that queue, along with your proposed change. Queued work is different from unfinished work elsewhere in the project.

For B, with A ahead of it, picture main + A + B. You are asking whether payment works when login is included too.

Are the tests run together or one by one?

Start with A. Its temporary candidate contains main + A. B’s candidate contains main + A + B.

These candidates get their own required checks. They are not five unrelated PR tests against the same old version, nor one giant test run containing everything being built. Candidate checks can overlap, depending on the queue configuration. The normal checks on PRs still exist.

The GitHub queue documentation describes these combinations. What matters for your demo is whether the checks exercise signing in and completing payment together.

Cimulink / A closer lookFollow the changes

Follow the combination being checked

A is login. B is payments. Watch what enters the candidate and what stays outside.

Main codeMainQueued changes not merged yet
Outside the queueChatbot taskUnfinished · not included
ALoginFirst in queueBPaymentsBehind A
Temporary candidate · separate from main
Main
Choose the next combination to check
1 / 6
A and B wait to join main

The queue contains login A and payment B. The unfinished chatbot task is outside it. Main has not received these changes yet.

The candidate changes when a queued entry leaves. Its new combination needs a new result. A queue does not resolve dependencies between tasks.
Read the full explanation
  1. A and B wait to join main. The queue contains login A and payment B. The unfinished chatbot task is outside it. Main has not received these changes yet.
  2. Check main + A. The first candidate contains the existing main code and login A. Its required checks pass; A can merge when the queue processes it.
  3. Check main + A + B. The payment candidate includes login A ahead of it. Its checks assess that combination, rather than B against the earlier main alone.
  4. C joins behind B. C is a payment compatibility fix. Its candidate includes A, B, and C. Candidate checks can overlap; joining the queue is not merging.
  5. B fails and leaves the queue. With the rule requiring non-failing PRs enabled, B is removed. A has passed and merges. C’s candidate must be rebuilt without B.
  6. Check the version without B. Current main already includes A. The rebuilt candidate adds C, but C needs payment code from B, so it fails. The dependency needs a deliberate repair.

You can pause the sequence or select a step to inspect which changes are present. The important distinction is between the main code and a temporary candidate being checked before it can join main.

B fails. What happens to C behind it?

Now a third change, C, joins the queue behind B. It is a compatibility fix to the payment feature. Its candidate can include main + A + B + C while another run is still checking B’s combination.

For this path, assume the queue requires non-failing PRs. A passes and can merge. B fails and is removed from the queue. C’s affected combination is rebuilt without B and checked again.

That leaves main + A + C. If A has already merged, it is now part of current main; we are keeping its letter visible so you can follow what changed.

C’s earlier result included B. That result cannot establish whether the version without B works. B leaving the queue also does not delete its branch or repair its code. Someone still owns the failed change.

But what if C was the fix that made B work?

Suppose B’s payment code expects the old login behavior. C adapts that payment code to A’s new behavior. C also needs the payment code from B to exist.

Now the results can look like this:

CombinationResultWhat it tells you
Main + A + BFailsPayment does not work with the login change
Main + A + B + CPassesThe compatibility fix makes the combined flow work
Main + A + CFailsThe fix needs the payment code from B

You have found a dependency. Removing the failed entry can remove something a later change needs.

GitHub has a setting called “Only merge non-failing pull requests.”

  • Enabled: each PR must satisfy required checks to merge. A passing later combination does not waive that requirement for B.
  • Disabled: a group can include failing entries when its final combined checks pass, subject to the other merge requirements.

These are different rules for evaluating the group. A later passing result is not a promise that an entry already removed will be brought back. See GitHub’s setting description.

If the team knows C is necessary for B, ask for that dependency to be handled deliberately. Your developer can put the necessary fix into B’s PR, have the complete change reviewed, and queue it again. The intended behavior then arrives as a working proposal rather than relying on a later entry to repair it.

What does this change for your delivery?

The queue helps your team keep integration checks current as work arrives. That can reduce recurring coordination around four problems:

  • Changes pass separately but disagree together. Candidate checks give your tests an opportunity to catch that interaction.
  • A passing result becomes outdated. The relevant combination needs to reflect changes that reached main afterward.
  • People repeatedly update and recheck their work. The queue automates coordination that otherwise needs a person to manage it.
  • A failing change obstructs independent work. Removing it lets the remaining combinations be reassessed. Dependent work may still need repair.

The queue does not invent tests. If the only check confirms that the payment screen opens, it may miss a customer being unable to pay after signing in. Useful checks and clear ownership come first.

What should you ask before the changes merge?

You can make the conversation concrete:

“What runs on the combined version before it joins main, and does it check a customer signing in and completing payment?”

Then ask who handles a failed candidate and whether any queued changes depend on one another. Whether developers or agents produced the patches, someone still needs to review the work and authorize the release.

If changes arrive occasionally, a deliberate combined check may be enough. If your team repeatedly updates branches, waits for tests, and discovers main has moved again, a queue may address useful coordination work. Your team should also confirm that its repository supports the feature.

For your next demo, ask to see the intended customer journey on the version being released. If a regression appears afterward, part 4 follows the investigation and recovery decision.