Skip to content

A PR can be armed, green and CLEAN and still never merge: the fourth stalled-automerge shape, and the evidence that points at an arm created by a REST re-run #309

Open

Description

@aitrawog

What happens

A pull request can be fully GREEN, mergeStateStatus: CLEAN, with an armed SQUASH autoMergeRequest from
app/github-actions, and still never merge — for 20+ minutes — until something moves the HEAD.

Measured, 2026-11-19, in opencharly/sdk:

PR head armed (enabledAt) merged elapsed
opencharly/opencharly#1168 — github-actions[bot] 8s after arming 8 s
opencharly/sdk#591 9d13c40bc9c5b2c6499f2247278e48d4c330797b app/github-actions, 15:35:21Z NEVER — sat until the head moved >20 min
opencharly/sdk#591 5c8d08fdf44ca1b54b001bbfcfae2187adf12b1a (appended empty chore(pr): re-freeze commit; git diff --stat empty) re-armed by the synchronize run merged, d154bae302cdfaee4bd9fac3063d56789ae85142 < 1 min

Ruled out on the stuck head before the re-trigger (each by direct measurement, not inference):

  • every check on the head success (8/8, including validate / validate 4m36s and validate / arm);
  • autoMergeRequest PRESENT (SQUASH, enabledAt 15:35:21Z, enabledBy app/github-actions) — so this is not the
    documented autoMergeRequest == null class ("armed and reports success but arms nothing"), whose remedy is also a
    new head but for a different reason;
  • mergeStateStatus: CLEAN, mergeable: true, reviewDecision: "";
  • base d53431f == main head (not BEHIND; strict_required_status_checks_policy: true satisfied);
  • the org ruleset carries no merge-queue rule (workflows, required_status_checks, non_fast_forward,
    deletion, creation);
  • GET /repos/opencharly/sdk/branches/main/protection → 404 (no legacy branch protection);
  • no POISON: exactly one run per check name on the head, all success;
  • the arming identity is capable: opencharly/opencharly#1168 was armed by the same app and merged in 8 seconds.

Why it matters

/charly-internals:git-workflow's re-trigger table lists ONE row for "an unresolvable/stale workflow_id, or a run
that produced no verdict" (a new run: an empty round commit) and ONE for "the arming step runs and reports SUCCESS,
and arms nothing" (also a new head). This state is neither: the arm is present and visible in autoMergeRequest,
the check is green, the tree is mergeable, and the merge still does not happen. An agent that reasons from
autoMergeRequest != null concludes "armed, so it will land" and waits — which is exactly what happened here, and
what only an operator's ruling broke.

The stalled-automerge detector covers three shapes; this is a fourth. A stuck arm that nothing detects is the same
failure the detector exists to prevent — and it costs a whole review round on a PR that was already PASS.

What to do about it (for the owner)

Either (a) add the shape to the detector/table — "armed, green, CLEAN, unmerged past the measured PASS→merge bound
(7m41s) while the arming identity is known to work elsewhere" → the ONE action is an appended empty round commit —
or (b) find the platform cause. Evidence that could settle (b), from the two runs above: the stuck arm was created by
a REST RE-RUN of the required workflow on an unchanged head (rounds 1–3 of #591 were body-only fixes, so the gate
was re-run by gh api -X POST …/rerun, and the PASS that armed it came from the third such re-run); the arm that
merged in 8 seconds came from a synchronize-driven run. That is consistent with the note already in the skill —
"a re-run may not carry the context its mutation needs" — and would make the class "an arm created by a REST
re-run", not "a stuck arm". Worth testing before (a) is written into the table.

Why it is filed rather than fixed here

Found cutting over opencharly/plugin-deploy-pod#81 (a pod deploy with a CDI GPU device + a bind volume could not
start). It is separable from that change — the SDK leg landed (opencharly/sdk#591, merged
d154bae302cdfaee4bd9fac3063d56789ae85142) and the plugin leg is unaffected — so per R1 it is a non-blocking finding
with its own issue, in the repo that owns the landing chain.

Agent: charly (session deploy-pod-fix, opencharly umbrella)
Assisted-by: DeepSeek Harness DeepSeek-V4.1-Flash (analysed on a live system)

Activity

  1. added
    category:governance
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:governancetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions