GitHub Actions concurrency sequence showing request B pending behind A before the controller dispatches C.

GitHub Actions Serialized the Runs. Which Requests Survived the Queue?

Tue, Dec 1, 2026

Three synthetic requests (A, B, and C) are dispatched to one GitHub Actions concurrency group. A common operational assumption is that cancel-in-progress: false means all three survive and merely execute one after another. That assumption is wrong under the default queue policy. GitHub documents a concurrency group as permitting one running member while, by default, only one additional member remains pending; a newer entrant replaces that existing pending member. cancel-in-progress decides whether the running member is also canceled. It does not enlarge the pending slot.

Executive summary. This playbook compares that default single-pending behavior with queue: max, introduced as an optional larger queue in GitHub’s May 7, 2026 Actions improvement. The comparison is deliberately small: an owned disposable GitHub.com repository, manual workflow_dispatch, workflow-level concurrency, requests A/B/C, and inert worker receipts. GitHub documents queue: max as allowing up to 100 pending jobs or workflow runs per group, subject to the documented limit; this article neither measures saturation nor treats that bound as a delivery guarantee.

The principal engineering concern is attribution. The controller must prove that B became a member of the blocked group before C is dispatched. Only then can B’s later replacement under single, or retention under max, be attributed to the policy rather than timing guesswork.

All cases are EXPECTED / NOT EXECUTED. Runtime IDs, SHAs, API responses, timings, operating-system details, and conclusions must come from a separately executed fixture before any deployment-related adoption decision becomes observed evidence.

Define which dispatched requests must remain eligible

Write the workload policy before writing YAML. There are two legitimate policies, but they are operationally different.

The first says all admitted requests A, B, and C must remain eligible to execute. Under that policy, cancellation of B because C arrived is a scheduling-policy failure even if A and C finish successfully. The second says an older pending request may be deliberately superseded by a newer request. Under that policy, B’s replacement is desirable, provided the replacement is attributable and application owners agree that B carried no uniquely required work.

A dispatch request, a workflow-run ID, a concurrency-group lease, and worker entry are therefore separate evidence objects. The dispatch request says what the controller asked GitHub to create. The returned run ID identifies what GitHub created. Group membership says whether that run acquired or waited for the scheduling lease. A worker receipt says the job actually reached the inert worker. A green aggregate badge alone cannot answer which original requests survived.

This distinction mirrors a broader evidence discipline: an independent denominator should exist before platform output is collected. Refonte Learning’s adjacent article on how to validate every required matrix combination applies that principle to matrix identities; this experiment uses separately dispatched requests instead and does not reuse that matrix fixture.

Freeze an oracle before dispatch:

Case

Policy question

Required request set

Status

Q01

Can A acquire and finish alone?

A

EXPECTED / NOT EXECUTED

Q02

Can B be observed pending behind held A?

A, B

EXPECTED / NOT EXECUTED

Q03

Does implicit single replace B with C?

A, B, C

EXPECTED / NOT EXECUTED

Q04

Does literal queue: single match the default?

A, B, C

EXPECTED / NOT EXECUTED

Q05

Does queue: max retain this observed A/B/C set?

A, B, C

EXPECTED / NOT EXECUTED

Q06

Are case-only group spellings one group?

A, B, C

EXPECTED / NOT EXECUTED

Q07

Can independent workflows share a repository group?

A, B, C

EXPECTED / NOT EXECUTED

Q08

Is max plus cancel-in-progress: true rejected?

no worker

EXPECTED / NOT EXECUTED

Q09

Does missing/mutated evidence fail closed?

evaluator only

EXPECTED / NOT EXECUTED

Q10

Do duplicate/unknown identities fail closed?

evaluator only

EXPECTED / NOT EXECUTED

The frozen oracle must never be rewritten to match collected outcomes.

Pin the service scope and record the environment

Limit qualification to GitHub.com, one owned disposable repository, and manual workflows. The workflow_dispatch trigger must exist on the repository’s default branch for GitHub to receive that trigger; a dispatch request itself may specify a branch or tag ref. The fixture should therefore place reviewed workflow definitions on the default branch, then dispatch a fixed reviewed branch or tag and bind every captured run back to its actual head_sha.

Record rather than assume:

Evidence field

Required value

Repository

exact owner/repo

Dispatch ref

reviewed branch/tag

head_sha

observed from exact run

Workflow path and workflow ID

observed

Workflow digest

locally frozen SHA-256

Worker-body digest

locally frozen SHA-256

Oracle/manifest digest

locally frozen SHA-256

REST version

2026-03-10

Python

actual python3 --version

GitHub CLI

actual gh --version

Runner label

configured ubuntu-24.04

Runtime OS/image details

actual worker output

Experiment UUID

newly generated

Group spelling

requested and observed

GitHub currently documents ubuntu-24.04 as a GitHub-hosted runner label, but the label is not an immutable statement of a particular image revision. Runtime values must be captured from the execution rather than invented in advance. The REST API examples used here explicitly pin X-GitHub-Api-Version: 2026-03-10; GitHub documents that version as a supported dated API version.

Assumptions for this authored fixture are intentionally narrow: Actions is enabled; the disposable repository can run a GitHub-hosted Linux worker; the controller already has a credential appropriate for the repository; and no unrelated workflow uses the generated experiment group. If runner capacity, permissions, service availability, or another environmental condition prevents A from reaching its holder barrier, classify the case HOLD_EVIDENCE, not as queue behavior. Capacity investigations belong in a different operational track; Refonte’s guidance to diagnose runner lifecycle and capacity separately is the adjacent scope boundary rather than part of this concurrency test.

Build a bounded holder and independent observer

Use one source-controlled worker implementation for valid comparisons. Only the declared concurrency policy, requested group spelling, workflow identity where Q07 requires it, and case inputs should change.

The baseline below is complete. It uses workflow-level concurrency, workflow_dispatch, an inert Python worker embedded in a single run step, no checkout, no environment, no reusable workflow, no third-party action, and no publishing credential. Workflow-level concurrency expressions may use github, inputs, and vars; the queue spelling remains literal rather than dynamically interpolated.

# .github/workflows/implicit-single.yml
name: concurrency-fixture-implicit-single
run-name: >-
  queue-fixture|${{ inputs.experiment }}|${{ inputs.case_id }}|${{ inputs.role }}

on:
  workflow_dispatch:
    inputs:
      experiment:
        description: Fresh experiment UUID
        required: true
        type: string
      case_id:
        description: Qxx
        required: true
        type: string
      role:
        description: A, B, or C
        required: true
        type: string
      group_key:
        description: Unique disposable group
        required: true
        type: string
      hold_for:
        description: Comma-separated roles that must be pending before release
        required: false
        default: ""
        type: string

permissions:
  actions: read
  contents: read

concurrency:
  group: ${{ inputs.group_key }}
  cancel-in-progress: false

jobs:
  worker:
    runs-on: ubuntu-24.04
    timeout-minutes: 8
    env:
      EXPERIMENT: ${{ inputs.experiment }}
      CASE_ID: ${{ inputs.case_id }}
      ROLE: ${{ inputs.role }}
      GROUP_KEY: ${{ inputs.group_key }}
      HOLD_FOR: ${{ inputs.hold_for }}
      RUN_ID: ${{ github.run_id }}
      RUN_ATTEMPT: ${{ github.run_attempt }}
      REPOSITORY: ${{ github.repository }}
      HEAD_SHA: ${{ github.sha }}
      GH_TOKEN: ${{ github.token }}
    steps:
      - name: Inert concurrency worker
        shell: bash
        run: |
          python3 - <<'PY'
          import json, os, platform, re, sys, time
          import urllib.error, urllib.parse, urllib.request

          required = [
              "EXPERIMENT", "CASE_ID", "ROLE", "GROUP_KEY",
              "RUN_ID", "RUN_ATTEMPT", "REPOSITORY", "HEAD_SHA", "GH_TOKEN"
          ]
          missing = [k for k in required if not os.environ.get(k)]
          if missing:
              raise SystemExit(f"missing environment: {missing}")

          exp = os.environ["EXPERIMENT"]
          case = os.environ["CASE_ID"]
          role = os.environ["ROLE"]
          group = os.environ["GROUP_KEY"]
          run_id = int(os.environ["RUN_ID"])
          hold_for = [x for x in os.environ.get("HOLD_FOR", "").split(",") if x]

          if not re.fullmatch(r"Q\d\d", case):
              raise SystemExit("invalid case")
          if role not in {"A", "B", "C"}:
              raise SystemExit("invalid role")
          if not re.fullmatch(r"[A-Za-z0-9._:-]{1,120}", group):
              raise SystemExit("invalid group key")

          owner, repo = os.environ["REPOSITORY"].split("/", 1)
          encoded = urllib.parse.quote(group, safe="")
          url = (
              f"https://api.github.com/repos/{owner}/{repo}"
              f"/actions/concurrency_groups/{encoded}"
          )

          def get_group():
              req = urllib.request.Request(
                  url,
                  headers={
                      "Accept": "application/vnd.github+json",
                      "Authorization": f"Bearer {os.environ['GH_TOKEN']}",
                      "X-GitHub-Api-Version": "2026-03-10",
                      "User-Agent": "queue-fixture-worker",
                  },
              )
              with urllib.request.urlopen(req, timeout=10) as r:
                  return r.status, json.loads(r.read())

          def classify_members(body):
              out = {}
              prefix = f"queue-fixture|{exp}|{case}|"
              for m in body.get("group_members", []):
                  rn = m.get("run_name", "")
                  if rn.startswith(prefix):
                      member_role = rn[len(prefix):]
                      if member_role in out:
                          raise SystemExit("duplicate role in group")
                      out[member_role] = {
                          "run_id": m.get("run_id"),
                          "status": m.get("status"),
                          "run_name": rn,
                      }
              return out

          snapshot = None
          if hold_for:
              deadline = time.monotonic() + 240
              while time.monotonic() < deadline:
                  try:
                      status, body = get_group()
                  except (urllib.error.URLError, TimeoutError) as e:
                      print(f"observer_error={type(e).__name__}", flush=True)
                      time.sleep(3)
                      continue

                  members = classify_members(body)
                  unknown = [
                      m for m in body.get("group_members", [])
                      if not m.get("run_name", "").startswith(
                          f"queue-fixture|{exp}|{case}|"
                      )
                  ]
                  if unknown:
                      raise SystemExit("unknown group member")

                  me = members.get(role)
                  wanted = [members.get(x) for x in hold_for]
                  if (
                      me
                      and me["run_id"] == run_id
                      and me["status"] == "in_progress"
                      and all(x and x["status"] == "pending" for x in wanted)
                  ):
                      snapshot = {"http_status": status, "body": body}
                      break
                  time.sleep(3)

              if snapshot is None:
                  raise SystemExit("holder barrier deadline exceeded")
          else:
              status, body = get_group()
              snapshot = {"http_status": status, "body": body}

          receipt = {
              "schema": 1,
              "kind": "queue-worker-receipt",
              "experiment": exp,
              "case_id": case,
              "role": role,
              "repository": os.environ["REPOSITORY"],
              "run_id": run_id,
              "attempt": int(os.environ["RUN_ATTEMPT"]),
              "head_sha": os.environ["HEAD_SHA"],
              "requested_group": group,
              "hold_for": hold_for,
              "python": sys.version.split()[0],
              "platform": platform.platform(),
              "decisive_group_response": snapshot,
          }
          print("QUEUE_RECEIPT=" + json.dumps(receipt, separators=(",", ":")), flush=True)
          PY

The job’s GITHUB_TOKEN needs only Actions read for the group observation used here. GitHub’s concurrency-group endpoint documents Actions read for fine-grained private-repository access; the external dispatch controller needs Actions write to create a workflow dispatch. Keep that boundary explicit rather than turning this into another permissions laboratory; see Refonte’s separate guidance to keep job token permissions explicit.

Keep the observer outside the blocked group

The independent controller runs locally, outside Actions concurrency. Otherwise the evidence collector could itself become subject to the mechanism being tested.

Give every HTTP request an authored timeout and every polling phase a bounded deadline. Ten seconds per HTTP operation, three seconds between observations, and 240 seconds per barrier are fixture choices, not GitHub service guarantees.

github-img

Do not wait for B to complete before dispatching C. If A is intentionally holding the group, that predicate would deadlock the experiment. The controller advances only after it observes membership, not completion. A timeout, 404 at the wrong phase, malformed response, permission error, or unexpected member produces HOLD_EVIDENCE.

Record one-running and one-pending baselines

Before testing replacement, prove that the fixture can observe ordinary acquisition and blocking.

GitHub’s current workflow-dispatch REST reference documents a 200 response containing workflow_run_id, run_url, and html_url. Capture the body that is actually returned; do not implement an obsolete assumption that dispatch necessarily returns 204 with no body, and do not recover identity by selecting “the newest run.”

The controller can use this compact helper:

#!/usr/bin/env python3
# controller.py
import json, os, time, urllib.error, urllib.parse, urllib.request

API = "https://api.github.com"
VERSION = "2026-03-10"
TOKEN = os.environ["GITHUB_ACTIONS_CONTROLLER_TOKEN"]

def request(method, path, payload=None):
    data = None if payload is None else json.dumps(payload).encode()
    req = urllib.request.Request(
        API + path,
        data=data,
        method=method,
        headers={
            "Accept": "application/vnd.github+json",
            "Authorization": f"Bearer {TOKEN}",
            "X-GitHub-Api-Version": VERSION,
            "Content-Type": "application/json",
            "User-Agent": "queue-fixture-controller",
        },
    )
    at = time.time()
    try:
        with urllib.request.urlopen(req, timeout=10) as r:
            raw = r.read()
            body = json.loads(raw) if raw else None
            return {"captured_at": at, "status": r.status, "body": body}
    except urllib.error.HTTPError as e:
        raw = e.read()
        body = json.loads(raw) if raw else None
        return {"captured_at": at, "status": e.code, "body": body}

def dispatch(owner, repo, workflow, ref, inputs):
    wf = urllib.parse.quote(str(workflow), safe="")
    result = request(
        "POST",
        f"/repos/{owner}/{repo}/actions/workflows/{wf}/dispatches",
        {"ref": ref, "inputs": inputs},
    )
    if result["status"] != 200:
        raise RuntimeError(result)
    run_id = result["body"].get("workflow_run_id")
    if not isinstance(run_id, int):
        raise RuntimeError("dispatch response lacks workflow_run_id")
    return result

def get_run(owner, repo, run_id):
    return request("GET", f"/repos/{owner}/{repo}/actions/runs/{run_id}")

def get_group(owner, repo, group, ahead_of_run=None):
    encoded = urllib.parse.quote(group, safe="")
    suffix = ""
    if ahead_of_run is not None:
        suffix = "?ahead_of_run=" + str(ahead_of_run)
    return request(
        "GET",
        f"/repos/{owner}/{repo}/actions/concurrency_groups/{encoded}{suffix}",
    )

def wait_until(fn, predicate, seconds=240, interval=3):
    deadline = time.monotonic() + seconds
    observations = []
    while time.monotonic() < deadline:
        item = fn()
        observations.append(item)
        if predicate(item):
            return item, observations
        time.sleep(interval)
    raise TimeoutError(json.dumps(observations[-5:], indent=2))

The evidence record for every call should preserve HTTP status, body, request identity, endpoint parameters, and capture time. A minimal raw envelope is:

{
  "experiment": "<uuid>",
  "case_id": "Q02",
  "operation": "get-group-ahead-of-run",
  "requested_group": "<group>",
  "run_id": "<actual integer>",
  "captured_at": "<controller timestamp>",
  "http_status": "<actual>",
  "response": "<unmodified JSON>"
}

Q01 dispatches A with hold_for="". Expected: A acquires the group, emits one valid worker receipt, and reaches a terminal successful run state. EXPECTED / NOT EXECUTED.

Q02 dispatches held A with hold_for="B", then B. The controller must save a specific-group response and ahead_of_run=B response showing A ahead and B as the last returned member with B pending. GitHub documents ahead_of_run exactly this way: members ahead of the specified workflow run plus that run as the final element; a run not in that group yields 422.

After completion, a specific-group GET may return 404 because GitHub documents 404 for an inactive or absent group. That live-state disappearance does not erase the already retained run records or snapshots.

Make a third request replace the pending run

Q03 is the negative control for the operational misconception.

A uses the implicit queue default and cancel-in-progress: false. GitHub’s precise option definitions say that single is the default, an existing pending member is canceled and replaced when another member queues, and cancel-in-progress: true is the switch that extends cancellation to the currently running member. Some broader examples elsewhere in the documentation use concise language about starting a member and canceling in-progress work; for this comparison, rely on the explicit option definitions because they distinguish the two axes precisely.

Run Q03 in this order:

  1. Dispatch A with hold_for="C" and store the returned A run ID.

  2. Observe A in_progress inside the exact experiment group.

  3. Dispatch B and store B’s returned run ID.

  4. Query the group with ahead_of_run=B.

  5. Save a barrier proving B is pending, last in that filtered response, with A ahead.

  6. Only after step 5 succeeds, dispatch C and store C’s returned run ID.

  7. Let A’s worker observe C pending and emit its decisive group snapshot.

  8. Reconcile exact A/B/C run IDs through terminal state and worker evidence.

The expected mechanism is: A remains running; C replaces pending B; B finishes canceled without an attributable worker-entry receipt; after A releases, C can acquire and execute. EXPECTED / NOT EXECUTED. GitHub explicitly documents default pending replacement, while cancel-in-progress: false leaves the running member outside the additional cancel behavior.

That result would qualify the replacement mechanism but would fail an application policy declaring that A, B, and C must all execute.

Prove B was pending before dispatching C

The decisive negative witness is not “B ended canceled.” It is the controlled happens-before chain:

B dispatch acknowledged → B observed pending behind A → C dispatch acknowledged → B later terminal-canceled.

The saved ahead_of_run=B barrier matters because GitHub does not expose an enqueue-timestamp field in this endpoint. Do not synthesize one from created_at, run ID order, or completion time. The API’s workflow-level filter is ahead_of_run; ahead_of_job is a distinct job-level concept excluded from this experiment.

Missing B logs are also insufficient positive evidence that B never entered a worker. GitHub CLI documents limitations in associating jobs and logs, including fallback behavior and cases where log material cannot be mapped normally. Use gh run view <run-id> --attempt <n> --repo OWNER/REPO --log only as one retained evidence source, and record the installed CLI version.

If the complete source revision, job state, run state, and available logs cannot rule out unexpected B worker entry, classify Q03 HOLD_EVIDENCE. Do not replace this proof with fixed sleeps or an assumed number of cancellations.

Compare explicit single with the implicit default

Q04 repeats Q03 using a separate reviewed workflow whose queue policy is literally single.

Create .github/workflows/explicit-single.yml by copying the frozen baseline and making exactly these reviewed edits:

name: concurrency-fixture-explicit-single

concurrency:
  group: ${{ inputs.group_key }}
  queue: single
  cancel-in-progress: false

Everything else, including worker bytes, permissions, runner label, input schema, holder logic, and receipt schema, remains byte-for-byte identical. Recompute and freeze the complete workflow digest after editing.

Do not dynamically pass single or max through an expression merely to reduce file duplication. The workflow-level group expression has documented contexts, but this fixture has no need to assume undocumented expression semantics for the queue enum. Literal files keep the policy under test obvious in review.

Q04 then uses the same controller sequence as Q03: establish A running, establish B pending, save B’s ahead_of_run barrier, dispatch C, save A’s later C-pending snapshot, and reconcile exact run identities.

Expected result: Q04 behaves like Q03: A is preserved, B is replaced, C survives pending and later executes. EXPECTED / NOT EXECUTED.

This is also the clean answer to a recurring cancel-in-progress false pending cancellation puzzle: disabling in-progress cancellation does not enlarge the pending capacity. cancel-in-progress answers “may the existing running member be canceled?” while queue answers “how many members may remain waiting?” GitHub’s current syntax defines those separately.

The comparison must not infer more than it measures. Q03/Q04 involve one runner lease and two successive pending requests. They do not establish durability, request-order guarantees, or general reliability under failure.

Retain three requests with queue: max

For Q05, create a third literal workflow, .github/workflows/max-queue.yml, from the same frozen worker:

name: concurrency-fixture-max

concurrency:
  group: ${{ inputs.group_key }}
  queue: max
  cancel-in-progress: false

GitHub announced the larger concurrency-group queue on May 7, 2026 as an Improvement. The change allows multiple pending members when cancel-in-progress is false or omitted.

Q05 uses two barriers.

Dispatch A with hold_for="B,C". After A is observed running, dispatch B, prove B pending, then dispatch C. A must not release until its own group GET contains exactly A in progress and B plus C pending for this experiment.

When A releases, B is expected to acquire. Dispatch B initially with hold_for="C" so that when B eventually reaches its worker it does not immediately finish: it queries the group until it observes itself in_progress and C still pending, then emits that decisive snapshot and releases. C uses hold_for="" and completes after it acquires.

Expected result: A, B, and C each have an attributable successful run and unique worker receipt, with A’s snapshot proving both B/C waiting and B’s snapshot proving B acquired while C remained pending. EXPECTED / NOT EXECUTED.

GitHub documents queue: max as permitting multiple pending members, currently up to 100 per concurrency group; the separate Actions limits page documents 100 queued workflow runs per concurrency group and rejection beyond that bound. This three-request fixture does not test that capacity.

Preserve a small admitted set without promising delivery

A successful Q05 would establish only that this observed three-request set remained attributable through admission and worker execution under the frozen source and environment. It would not establish that every future dispatch executes.

Four states remain distinct:

State

Evidence needed

Dispatch accepted

captured 200 response with exact workflow_run_id

Group admission/waiting

raw concurrency-group membership

Worker started/completed

unique validated worker receipt plus job/run evidence

Business acceptance

outside this inert experiment

queue: max is therefore a bounded platform queue, not a durable business intake ledger. The experiment does not test runner loss, GitHub outages, the documented 100-member boundary, queue overflow, retry semantics, or external side effects. It supplies no exactly-once delivery property. GitHub’s documented bound is platform capacity, not evidence measured here.

If the business requirement is “every accepted instruction must be durably retained, sequenced by business key, retried after infrastructure loss, deduplicated, and acknowledged exactly according to domain semantics,” use a separate durable intake and processing design. That architecture is deliberately not implemented in this article.

Separate queue-entry order from dispatch order

GitHub documents FIFO with an important qualification: members in the same concurrency group are processed according to when each started waiting on the concurrency group, not according to when its workflow was dispatched. GitHub explicitly adds that actual starts can vary and ordering is not guaranteed in the broader sense.

That wording prevents an attractive but invalid conclusion such as:

dispatch(B) < dispatch(C) ⇒ execution(B) < execution(C).

This fixture does something more defensible. The controller refuses to dispatch C until it has already obtained a live group response proving B is pending behind A. That gives an experiment-local happens-before relationship:

B proven waiting → C dispatched.

Preserve both datasets. The submission ledger contains request payload, dispatch response, controller timestamp, run ID, ref, and case identity. Group snapshots contain requested group spelling, observed canonical group name, member run IDs, member statuses, raw body, and capture time. Neither should be replaced by a reconstructed ordering based on final created_at values.

GitHub’s specific-group API exposes members and statuses and supports ahead_of_run; it does not document a per-member “entered queue at” timestamp suitable for manufacturing a stronger ordering claim.

The practical consequence is that “GitHub Actions concurrency group FIFO” must always retain that waiting-entry qualification. Q05’s B-before-C evidence comes from controlled barriers, not from assuming GitHub Actions dispatch order is globally preserved.

Bound the ordering claim to observed barriers

The release predicate should be exact. For Q05/A, accept only:

  • the expected experiment and case;

  • A’s own exact run ID as in_progress;

  • exactly one B and one C from the frozen naming schema;

  • both B and C with pending;

  • no unknown group member.

For Q05/B, require B’s own exact run ID in progress and C pending. Reject duplicates and unknown members.

If a required barrier is missing, do not repair history by sorting run IDs, created_at, started_at, or completion timestamps. The barrier itself is the ordering evidence.

This distinction matters operationally because queue-entry time can be affected before a run begins waiting for the group. The experiment can validate the specific ordering it intentionally established, while still refusing to claim that all independently dispatched Actions workflows execute in dispatch order. That bounded claim is stronger engineering than overstating a platform contract.

Test case-folded and cross-workflow group names

Q06 tests a common namespace defect. GitHub documents concurrency-group names as case insensitive: for example, prod and Prod refer to the same group.

Generate a fresh experiment key such as:

queue-fixture-<experiment>-Q06

Dispatch A using one spelling and B/C using case-only variants, for example:

Queue-Fixture-<experiment>-Q06
queue-fixture-<experiment>-q06
QUEUE-FIXTURE-<experiment>-Q06

Preserve every requested spelling as well as group_name returned by GitHub. Expected: the three runs contend for one case-insensitive group and, under the Q06 max variant, can reproduce the Q05 retention pattern. EXPECTED / NOT EXECUTED. The useful remediation if a production collision is discovered is not “add capitalization”; it is to redesign the namespace so unrelated policies produce genuinely distinct keys.

Q07 tests repository-wide cross-workflow grouping. Copy max-queue.yml to .github/workflows/max-queue-peer.yml, changing only the workflow name; keep the worker and queue: max semantics unchanged. Dispatch A through max-queue.yml, and B/C through max-queue-peer.yml, all with the same fresh group key.

GitHub warns that concurrency names can collide across workflows in the same repository and recommends namespacing when workflows should not interact. Expected Q07 evidence therefore contains different workflow IDs participating in the same observed group while preserving the A/B/C barriers. EXPECTED / NOT EXECUTED.

These are independent manual workflow files; they do not call one another. Reusable-workflow delegation introduces a different authorization and secret boundary, covered separately in Refonte’s guidance to audit reusable-workflow authority independently.

Never run Q06/Q07 against a production group name. Isolation keys must include the fresh experiment identity.

Reject incompatible queue configuration

Q08 is a source-validation negative case, not another scheduling run.

Create a separately labeled file containing the incompatible combination:

name: concurrency-fixture-invalid-max-cancel

on:
  workflow_dispatch:
    inputs:
      group_key:
        required: true
        type: string

concurrency:
  group: ${{ inputs.group_key }}
  queue: max
  cancel-in-progress: true

jobs:
  must-not-run:
    runs-on: ubuntu-24.04
    steps:
      - run: echo "THIS WOULD BE UNEXPECTED WORKER ENTRY"

GitHub’s current concurrency documentation explicitly states that queue: max cannot be combined with cancel-in-progress: true and that this combination produces workflow validation failure.

Expected Q08 result: configuration is rejected before the proposed worker executes. EXPECTED / NOT EXECUTED. Capture whatever rejection surface GitHub actually supplies during the separate execution. Do not pre-author an HTTP status, error string, check result, or run ID because the relevant submission/validation surface may differ from an ordinary successfully created workflow run.

Keep the invalid source and its actual rejection evidence immutable. The corrected policy is:

concurrency:
  group: ${{ inputs.group_key }}
  queue: max
  cancel-in-progress: false

That corrected YAML is a candidate for a new experiment; it must never overwrite Q08’s negative specimen or be used to reinterpret the failed evidence.

Q08 also clarifies an important completeness boundary: a configuration that never creates a normal executable run is not evaluated by the same “all expected run IDs reached terminal state” rule as Q01–Q07. Its success criterion is attributable configuration rejection and absence of worker entry, not a green workflow conclusion.

Reconcile snapshots, receipts and final run states

The expected manifest should be source-controlled independently of collected evidence.

{
  "schema": 1,
  "status": "EXPECTED / NOT EXECUTED",
  "cases": {
    "Q01": {
      "roles": ["A"],
      "policy": "implicit-single",
      "expected_workers": ["A"]
    },
    "Q02": {
      "roles": ["A", "B"],
      "policy": "implicit-single",
      "expected_workers": ["A", "B"]
    },
    "Q03": {
      "roles": ["A", "B", "C"],
      "policy": "implicit-single",
      "expected_workers": ["A", "C"],
      "expected_terminal": {"B": "cancelled"}
    },
    "Q04": {
      "roles": ["A", "B", "C"],
      "policy": "explicit-single",
      "expected_workers": ["A", "C"],
      "expected_terminal": {"B": "cancelled"}
    },
    "Q05": {
      "roles": ["A", "B", "C"],
      "policy": "max",
      "expected_workers": ["A", "B", "C"]
    },
    "Q06": {
      "roles": ["A", "B", "C"],
      "policy": "max-casefold",
      "expected_workers": ["A", "B", "C"]
    },
    "Q07": {
      "roles": ["A", "B", "C"],
      "policy": "max-cross-workflow",
      "expected_workers": ["A", "B", "C"]
    },
    "Q08": {
      "roles": [],
      "policy": "invalid-max-cancel",
      "expected": "validation-rejection"
    },
    "Q09": {
      "kind": "evaluator-mutation",
      "expected": "HOLD_EVIDENCE"
    },
    "Q10": {
      "kind": "evaluator-mutation",
      "expected": "HOLD_EVIDENCE"
    }
  }
}

For Q01–Q07, bind each role to repository, workflow path and workflow ID, dispatch ref, observed head SHA, experiment, role, run ID, attempt, workflow digest, worker digest, manifest digest, and group spelling. GitHub’s workflow-run APIs expose run identity and fields including event, SHA, status, conclusion, and attempt-related run data; use exact IDs from dispatch rather than whichever listing entry happens to be newest.

Retain:

Evidence family

Required material

Source

workflow bytes, digests, reviewed ref

Dispatch

request and returned run ID/URLs

Run

exact run JSON and terminal state

Group

all decisive raw snapshots

Worker

raw log plus parsed unique receipt

Tooling

API version, Python version, gh version

Decision

evaluator output and owner

A compact evaluator can fail closed:

#!/usr/bin/env python3
# evaluate.py
import json, sys

manifest = json.load(open(sys.argv[1]))
evidence = json.load(open(sys.argv[2]))

def hold(msg):
    print(json.dumps({"decision":"HOLD_EVIDENCE","reason":msg}))
    raise SystemExit(2)

if evidence.get("schema") != 1:
    hold("bad evidence schema")
if manifest.get("schema") != 1:
    hold("bad manifest schema")

seen_runs = set()
for case_id, spec in manifest["cases"].items():
    if case_id in {"Q09", "Q10"}:
        continue
    case = evidence.get("cases", {}).get(case_id)
    if not case:
        hold(f"{case_id}: missing case evidence")

    if case_id == "Q08":
        if case.get("classification") != "validation-rejection":
            hold("Q08: rejection not attributable")
        if case.get("worker_receipts"):
            hold("Q08: unexpected worker entry")
        continue

    roles = spec["roles"]
    runs = case.get("runs", {})
    if sorted(runs) != sorted(roles):
        hold(f"{case_id}: role/run identity mismatch")

    for role in roles:
        r = runs[role]
        run_id = r.get("run_id")
        if not isinstance(run_id, int):
            hold(f"{case_id}/{role}: missing run id")
        if run_id in seen_runs:
            hold(f"{case_id}: duplicate run id")
        seen_runs.add(run_id)

        required = [
            "repository","workflow_id","workflow_path","head_sha","attempt",
            "experiment","group","workflow_digest","worker_digest",
            "manifest_digest","status","conclusion"
        ]
        if any(not r.get(k) for k in required):
            hold(f"{case_id}/{role}: incomplete run binding")

    for barrier in case.get("required_barriers", []):
        if barrier.get("satisfied") is not True or not barrier.get("raw_response"):
            hold(f"{case_id}: missing barrier")

    receipts = case.get("worker_receipts", [])
    identities = [(x.get("role"), x.get("run_id")) for x in receipts]
    if len(identities) != len(set(identities)):
        hold(f"{case_id}: duplicate receipt")

    expected_workers = sorted(spec.get("expected_workers", []))
    actual_workers = sorted(x.get("role") for x in receipts)
    if actual_workers != expected_workers:
        hold(f"{case_id}: worker-entry mismatch")

print(json.dumps({"decision":"ACCEPT_BOUNDED_CASE"}))

Run status and step semantics remain separate concerns. Refonte’s article on how to separate tolerated failure from successful validation addresses that status boundary; this experiment does not reuse step-tolerance mechanics.

Make incomplete and duplicated evidence fail closed

Q09 and Q10 are local evaluator mutations. They are not claims that GitHub generated corrupt evidence.

For Q09, copy a valid-shaped evidence bundle and remove the saved B-pending barrier, or mutate one recorded workflow/head SHA binding. Expected evaluator decision: HOLD_EVIDENCE. EXPECTED / NOT EXECUTED.

For Q10, copy an evidence bundle and assign B and C the same run ID, or inject an unexpected group member into a decisive snapshot. Expected decision: HOLD_EVIDENCE. EXPECTED / NOT EXECUTED.

Receipt parsing should accept exactly one QUEUE_RECEIPT= JSON object for an expected worker identity. Validate schema, repository, experiment, case, role, run ID, attempt, SHA, and group. Treat zero receipts, multiple matching receipts, malformed JSON, or conflicting identity as incomplete evidence.

Never execute log text. Never permit “all visible runs are green” to substitute for an expected identity that disappeared. GitHub CLI’s documented log-association limitations reinforce why absence of a convenient log fragment is not positive evidence of non-execution.

If documentation and an eventual real experiment disagree, preserve the documentation citation and the captured contradictory observation and assign HOLD_EVIDENCE. Do not edit either record until they appear to agree.

Repair the scheduling policy and preserve failed evidence

  1. Recovery starts by preserving the failure, not by making the dashboard green.

  2. Freeze the entire failed experiment bundle: manifest, source, digests, dispatch responses, group snapshots, run JSON, logs, parsed receipts, evaluator output, and tool versions.

  3. Classify the mismatch. A required B replaced under implicit single is a policy mismatch; an unrelated workflow sharing the group is a namespace collision; a missing barrier is an evidence failure.

  4. Have the platform owner review revised YAML and the application owner confirm whether supersession is allowed.

  5. Commit the revised workflow separately and compute new digests.

  6. Generate a fresh experiment UUID and therefore a fresh concurrency group.

  7. Rerun only the affected comparisons with the frozen new oracle.

  8. Keep the first experiment’s negative evidence unchanged.

A lost dispatch acknowledgment requires special care. A network failure after GitHub accepted the request can leave the controller uncertain whether a run exists. Do not automatically dispatch a duplicate. Reconcile by the known experiment/case/role identity, workflow, SHA/ref, event, and available run data first. Workflow-run listings can help investigation, but selecting “the latest” is not reliable request correlation; the normal path should use the run ID returned by the documented dispatch response.

Cleanup is limited to bounded synthetic fixture resources. Deleting run history is not a repair and destroys useful evidence.

Restore configuration without rewriting execution history

Restoring a prior YAML file changes future configuration. It does not undo a run that already entered its worker.

For this synthetic experiment there are no business writes, so after attribution is resolved an application owner may authorize a new synthetic request corresponding to a canceled B. Give it a new dispatch/run identity; do not pretend it is the original execution.

In production, the distinction is more serious. A canceled workflow does not prove that all remote effects were rolled back, and reverting the concurrency YAML does not reverse external state. That is why this controlled worker is intentionally inert.

If actual deployment semantics require compensating actions, idempotency keys, durable retries, or domain reconciliation, those mechanisms belong in the deployment/business architecture, not in a GitHub concurrency qualification test. The concurrency experiment may tell you which request obtained or lost platform eligibility; it cannot establish rollback of work outside GitHub Actions.

Assign the operating decision and ownership

The output is an operating decision supported by evidence, not a pass/fail color.

Decision

Use when

Owner action

ACCEPT_BOUNDED_CASE

Frozen expected case and complete evidence agree

Platform owner records qualified scope

KEEP_SUPERSESSION

Pending replacement is intentional and approved

Application owner documents supersedable request class

REPAIR_POLICY

Required request disappears or groups collide

Platform owner revises queue/group policy

HOLD_EVIDENCE

Identity, barrier, source, endpoint, or terminal evidence is incomplete

Collector owner preserves bundle; no adoption

RERUN_INCONCLUSIVE

Prior attempt is attributable but environmental failure prevented conclusion

Owner creates fresh isolated experiment after reconciliation

A correct Q03 negative witness (A preserved, B replaced, C retained) does not approve that policy for an all-requests workload. It proves the mechanism that makes the policy unsuitable.

Responsibility should be explicit. Platform ownership controls the concurrency declaration, workflow-policy review, and group namespace. Application or release ownership decides whether one pending request may supersede another or whether every request represents required work. Collector ownership maintains exact run correlation, raw API responses, immutable evidence, evaluator behavior, and retention. A deployment approver may consume the result but should not infer missing evidence.

A concise handover should state: frozen commit/ref and SHA; workflow and worker digests; exact group namespace rule; policy (single or max); whether supersession is business-approved; Q01–Q10 evaluator result; unresolved HOLDs; controller/API/CLI versions; and the owner of the next decision.

Where strict business sequencing or durable intake is mandatory, stop treating an Actions concurrency group as the system of record. The documented feature serializes access and, with queue: max, expands bounded waiting capacity; it does not document exactly-once business execution or universal dispatch-order preservation. A separate durable design should own intake, deduplication, sequencing, retry and acknowledgement semantics, while Actions may remain one execution mechanism beneath it.

Develop CI validation practice through Refonte Learning

The useful engineering outcome of this playbook is a defensible choice among four paths: retain deliberate pending supersession; adopt bounded queue: max only after request-level reconciliation demonstrates the required observed set survives; repair a colliding concurrency namespace; or hold deployment-related adoption because the run identities, barriers, source bindings, or terminal evidence are incomplete.

Those practices rest on ordinary but demanding foundations: scripting collectors that fail closed, understanding Git and GitHub identities, reading CI/CD scheduling semantics precisely, and separating platform state from application policy.

Refonte Learning’s DevOps Engineering Program is listed as a three-month program requiring approximately 12–14 hours per week and requiring participants to be engaged in bachelor’s or postgraduate study; its stated curriculum includes Linux fundamentals and scripting, Git and GitHub, CI/CD, Docker and Kubernetes, Terraform, AWS/Azure/GCP, monitoring/logging, and a capstone project. The page describes virtual internship opportunities and “Potential Internship,” names DevOps Engineer, Cloud Engineer, and Site Reliability Engineer as career-result paths, and states that successful completion earns a Training Certificate and a Certificate of Internship.

The program page also identifies Jenkins, Prometheus, and Grafana among commonly used DevOps tools. That description does not establish the depth of instruction for each tool or whether the program covers this exact GitHub Actions concurrency laboratory, queue: max, the 2026-03-10 REST version, or a particular mentoring cadence.